File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4343
4444- ` push ` 到 ` master ` :补同步 ` manualTags ` 中尚未同步的 tag。
4545- ` schedule ` :每周一北京时间 01:00 检测新的正式 Release。
46- - ` workflow_dispatch ` :手工触发一次完整扫描 。
46+ - ` workflow_dispatch ` :手工触发,仅处理 ` manualTags ` 中尚未同步的 tag 。
4747
4848## Secrets
4949
Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ async function main(): Promise<void> {
4242
4343async function runPlan ( args : ArgMap ) : Promise < void > {
4444 const configPath = requireArg ( args , "--config" ) ;
45- const mode = requirePlannerMode ( requireArg ( args , "--mode" ) ) ;
45+ const mode = normalizePlannerMode ( requirePlannerMode ( requireArg ( args , "--mode" ) ) ) ;
4646 const githubOutput = optionalArg ( args , "--github-output" ) ;
4747 const config = await readConfig ( configPath ) ;
4848 const client = new GitHubClient ( resolveGitHubToken ( process . env ) ) ;
@@ -219,6 +219,14 @@ function requirePlannerMode(value: string): PlannerMode {
219219 throw new Error ( `Unsupported planner mode: ${ value } ` ) ;
220220}
221221
222+ function normalizePlannerMode ( mode : PlannerMode ) : PlannerMode {
223+ if ( mode === "workflow_dispatch" ) {
224+ return "push" ;
225+ }
226+
227+ return mode ;
228+ }
229+
222230async function appendGitHubOutputs ( outputPath : string , values : Record < string , string > ) : Promise < void > {
223231 const lines : string [ ] = [ ] ;
224232
You can’t perform that action at this time.
0 commit comments