Skip to content

Commit 82e6f21

Browse files
authored
chore(scripts): wait for scala on the tag (#5471)
1 parent 16064f0 commit 82e6f21

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

scripts/ci/codegen/waitForAllReleases.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff 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+
1822
async 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) {

0 commit comments

Comments
 (0)