mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-15 17:30:27 +08:00
perf.使 DevBuild 在所有非 master 分支运行
This commit is contained in:
4
.github/workflows/dev-build.yml
vendored
4
.github/workflows/dev-build.yml
vendored
@@ -18,8 +18,8 @@ name: dev-build
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- dev
|
||||
branches-ignore:
|
||||
- master
|
||||
paths:
|
||||
- 'src/MeoAssistant/**'
|
||||
- 'src/MeoAssistantBuilder/**'
|
||||
|
||||
@@ -5,7 +5,7 @@ namespace MeoAssistantBuilder;
|
||||
[GitHubActions(
|
||||
name: "dev-build",
|
||||
image: GitHubActionsImage.WindowsLatest,
|
||||
OnPushBranches = new[] { DevBranch },
|
||||
OnPushBranchesIgnore = new[] { MasterBranch },
|
||||
OnPullRequestBranches = new[] { DevBranch },
|
||||
OnPushIncludePaths = new[]
|
||||
{
|
||||
|
||||
@@ -195,7 +195,7 @@ public partial class Build
|
||||
IsFork = true;
|
||||
}
|
||||
|
||||
// 若是 DevBuild,Branch 必须为 Dev,或者是 PR,又或者是手动触发
|
||||
// 若是 DevBuild,Branch 必须不为 Master,或者是 PR 至 Dev,又或者是手动触发
|
||||
if (GhActionName == ActionConfiguration.DevBuild)
|
||||
{
|
||||
if (IsWorkflowDispatch)
|
||||
@@ -208,7 +208,7 @@ public partial class Build
|
||||
}
|
||||
else
|
||||
{
|
||||
Assert.True(GhBranch == DevBranch, "DevBuild -> Auto Triggered,Branch 不为 dev");
|
||||
Assert.True(GhBranch != MasterBranch, "DevBuild -> Auto Triggered,Branch 为 master");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user