perf.使 DevBuild 在所有非 master 分支运行

This commit is contained in:
Liam Sho
2022-05-17 17:26:32 +08:00
parent 6e116eefe3
commit 8030ca6065
3 changed files with 5 additions and 5 deletions

View File

@@ -18,8 +18,8 @@ name: dev-build
on:
push:
branches:
- dev
branches-ignore:
- master
paths:
- 'src/MeoAssistant/**'
- 'src/MeoAssistantBuilder/**'

View File

@@ -5,7 +5,7 @@ namespace MeoAssistantBuilder;
[GitHubActions(
name: "dev-build",
image: GitHubActionsImage.WindowsLatest,
OnPushBranches = new[] { DevBranch },
OnPushBranchesIgnore = new[] { MasterBranch },
OnPullRequestBranches = new[] { DevBranch },
OnPushIncludePaths = new[]
{

View File

@@ -195,7 +195,7 @@ public partial class Build
IsFork = true;
}
// 若是 DevBuildBranch 必须为 Dev,或者是 PR又或者是手动触发
// 若是 DevBuildBranch 必须Master,或者是 PR 至 Dev,又或者是手动触发
if (GhActionName == ActionConfiguration.DevBuild)
{
if (IsWorkflowDispatch)
@@ -208,7 +208,7 @@ public partial class Build
}
else
{
Assert.True(GhBranch == DevBranch, "DevBuild -> Auto TriggeredBranch dev");
Assert.True(GhBranch != MasterBranch, "DevBuild -> Auto TriggeredBranch 为 master");
}
}