File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -16,8 +16,25 @@ permissions:
1616 contents : read
1717
1818jobs :
19+ wait_for_checks :
20+ # Verify that `Code checks` and `Tests` already completed successfully on the dispatch commit
21+ # (they run via `on_master.yaml` on every push to master). For the auto-dispatched path from
22+ # `on_master.yaml`, these are guaranteed by `needs:` already; this also gates manual dispatches.
23+ # TODO: switch from the PR branch to a tagged release once apify/workflows#238 is merged.
24+ name : Wait for required checks
25+ runs-on : ubuntu-latest
26+ permissions :
27+ checks : read
28+ steps :
29+ - name : Wait for Code checks and Tests
30+ uses : apify/workflows/wait-for-checks@wait-for-checks-action
31+ with :
32+ ref : ${{ github.sha }}
33+ check-regexp : ' ^(Code checks|Tests)'
34+
1935 release_prepare :
2036 name : Release prepare
37+ needs : [wait_for_checks]
2138 runs-on : ubuntu-latest
2239 outputs :
2340 version_number : ${{ steps.release_prepare.outputs.version_number }}
Original file line number Diff line number Diff line change 2323 contents : write
2424 pages : write
2525 id-token : write
26+ checks : read
2627 runs-on : ubuntu-latest
2728
2829 steps :
30+ # Verify `Doc checks` already passed on the dispatch commit (they run via `on_master.yaml`
31+ # on every push to master). Skipped when this workflow is invoked via `workflow_call` from
32+ # another release workflow — the parent has already gated on the relevant checks.
33+ # TODO: switch from the PR branch to a tagged release once apify/workflows#238 is merged.
34+ - name : Wait for Doc checks
35+ if : github.event_name == 'workflow_dispatch'
36+ uses : apify/workflows/wait-for-checks@wait-for-checks-action
37+ with :
38+ ref : ${{ github.sha }}
39+ check-regexp : ' ^Doc checks'
40+
2941 - name : Checkout repository
3042 uses : actions/checkout@v6
3143 with :
Original file line number Diff line number Diff line change @@ -29,13 +29,24 @@ permissions:
2929 contents : read
3030
3131jobs :
32- code_checks :
33- name : Code checks
34- uses : ./.github/workflows/_check_code.yaml
32+ wait_for_checks :
33+ # Verify that `Code checks` and `Tests` already completed successfully on the dispatch commit
34+ # (they run via `on_master.yaml` on every push to master). Avoids re-running them on release.
35+ # TODO: switch from the PR branch to a tagged release once apify/workflows#238 is merged.
36+ name : Wait for required checks
37+ runs-on : ubuntu-latest
38+ permissions :
39+ checks : read
40+ steps :
41+ - name : Wait for Code checks and Tests
42+ uses : apify/workflows/wait-for-checks@wait-for-checks-action
43+ with :
44+ ref : ${{ github.sha }}
45+ check-regexp : ' ^(Code checks|Tests)'
3546
3647 release_prepare :
3748 name : Release prepare
38- needs : [code_checks ]
49+ needs : [wait_for_checks ]
3950 runs-on : ubuntu-latest
4051 outputs :
4152 version_number : ${{ steps.release_prepare.outputs.version_number }}
Original file line number Diff line number Diff line change 3636 runs-on : ubuntu-latest
3737 permissions :
3838 contents : write
39+ checks : read
3940
4041 steps :
42+ # Verify `Doc checks` already passed on the dispatch commit (they run via `on_master.yaml`
43+ # on every push to master). Skipped when invoked via `workflow_call` from the stable release —
44+ # the parent has already gated on the relevant checks.
45+ # TODO: switch from the PR branch to a tagged release once apify/workflows#238 is merged.
46+ - name : Wait for Doc checks
47+ if : github.event_name == 'workflow_dispatch'
48+ uses : apify/workflows/wait-for-checks@wait-for-checks-action
49+ with :
50+ ref : ${{ github.sha }}
51+ check-regexp : ' ^Doc checks'
52+
4153 - name : Checkout repository
4254 uses : actions/checkout@v6
4355 with :
You can’t perform that action at this time.
0 commit comments