Skip to content

Commit bd9b424

Browse files
vdusekclaude
andcommitted
ci: Gate manual release workflows on wait-for-checks
Replace each release workflow's inline code/tests checks with a `wait-for-checks` step that verifies the `Checks` workflow already passed on the dispatch commit (it runs via `on_master.yaml` on every push). Adds the gate to the stable and beta release workflows that previously had none. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent dca437e commit bd9b424

2 files changed

Lines changed: 27 additions & 8 deletions

File tree

.github/workflows/manual_release_beta.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,22 @@ permissions:
1616
contents: read
1717

1818
jobs:
19+
wait_for_checks:
20+
# Gate the release on the `Checks` workflow already succeeding on this commit (run by `on_master.yaml`).
21+
name: Wait for required checks
22+
runs-on: ubuntu-latest
23+
permissions:
24+
checks: read
25+
steps:
26+
- name: Wait for checks
27+
uses: apify/actions/wait-for-checks@v1.2.0
28+
with:
29+
ref: ${{ github.sha }}
30+
check-regexp: '^Checks'
31+
1932
release_prepare:
2033
name: Release prepare
34+
needs: [wait_for_checks]
2135
runs-on: ubuntu-latest
2236
outputs:
2337
version_number: ${{ steps.release_prepare.outputs.version_number }}

.github/workflows/manual_release_stable.yaml

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,17 +26,22 @@ concurrency:
2626
cancel-in-progress: false
2727

2828
jobs:
29-
code_checks:
30-
name: Code checks
31-
uses: ./.github/workflows/_check_code.yaml
32-
33-
tests:
34-
name: Tests
35-
uses: ./.github/workflows/_tests.yaml
29+
wait_for_checks:
30+
# Gate the release on the `Checks` workflow already succeeding on this commit (run by `on_master.yaml`).
31+
name: Wait for required checks
32+
runs-on: ubuntu-latest
33+
permissions:
34+
checks: read
35+
steps:
36+
- name: Wait for checks
37+
uses: apify/actions/wait-for-checks@v1.2.0
38+
with:
39+
ref: ${{ github.sha }}
40+
check-regexp: '^Checks'
3641

3742
release_prepare:
3843
name: Release prepare
39-
needs: [code_checks, tests]
44+
needs: [wait_for_checks]
4045
runs-on: ubuntu-latest
4146
outputs:
4247
version_number: ${{ steps.release_prepare.outputs.version_number }}

0 commit comments

Comments
 (0)