File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,10 @@ type Run = {
1515 retried : boolean ;
1616} ;
1717
18+ function useTagForRelease ( language : Language ) : boolean {
19+ return language === 'scala' || language === 'dart' ;
20+ }
21+
1822async function fetchAllRuns ( runs : Run [ ] ) : Promise < void > {
1923 const octokit = getOctokit ( ) ;
2024
@@ -28,7 +32,7 @@ async function fetchAllRuns(runs: Run[]): Promise<void> {
2832 repo : getClientsConfigField ( ciRun . language , 'gitRepoId' ) ,
2933 workflow_id : 'release.yml' ,
3034 per_page : 1 ,
31- branch : ciRun . language === 'dart' ? undefined : getTargetBranch ( ciRun . language ) ,
35+ branch : useTagForRelease ( ciRun . language ) ? undefined : getTargetBranch ( ciRun . language ) ,
3236 } ) ;
3337
3438 if ( workflowRun . data . workflow_runs . length === 0 ) {
You can’t perform that action at this time.
0 commit comments