88 tags-ignore :
99 - " **" # Ignore all tags to prevent duplicate builds when tags are pushed.
1010
11+ concurrency :
12+ group : release
13+ cancel-in-progress : false
14+
1115jobs :
1216 release_metadata :
1317 if : " !startsWith(github.event.head_commit.message, 'docs') && !startsWith(github.event.head_commit.message, 'ci') && startsWith(github.repository, 'apify/')"
@@ -24,28 +28,35 @@ jobs:
2428 with :
2529 release_type : prerelease
2630
27- lint_check :
28- name : Lint check
29- uses : apify/workflows/.github/workflows/python_lint_check.yaml@main
30-
31- type_check :
32- name : Type check
33- uses : apify/workflows/.github/workflows/python_type_check.yaml@main
34-
35- unit_tests :
36- name : Unit tests
37- uses : apify/workflows/.github/workflows/python_unit_tests.yaml@main
31+ # If github.ref points to a [ci skip] commit, this workflow won't run.
32+ # Otherwise, these checks will be launched from the `run_code_checks` workflow.
33+ wait_for_checks :
34+ name : Wait for code checks to pass
35+ runs-on : ubuntu-latest
36+ steps :
37+ - uses : lewagon/wait-on-check-action@v1.3.4
38+ with :
39+ ref : ${{ github.ref }}
40+ repo-token : ${{ secrets.GITHUB_TOKEN }}
41+ check-regexp : " ( check| tests)$"
42+ wait-interval : 5
3843
3944 update_changelog :
4045 name : Update changelog
41- needs : [release_metadata, lint_check, type_check, unit_tests ]
46+ needs : [release_metadata, wait_for_checks ]
4247 uses : apify/workflows/.github/workflows/python_bump_and_update_changelog.yaml@main
4348 with :
4449 version_number : ${{ needs.release_metadata.outputs.version_number }}
4550 changelog : ${{ needs.release_metadata.outputs.changelog }}
4651 secrets :
4752 APIFY_SERVICE_ACCOUNT_GITHUB_TOKEN : ${{ secrets.APIFY_SERVICE_ACCOUNT_GITHUB_TOKEN }}
4853
54+ build_and_deploy_docs :
55+ needs : [update_changelog]
56+ uses : ./.github/workflows/build_and_deploy_docs.yaml
57+ with :
58+ ref : ${{ needs.update_changelog.outputs.changelog_commitish }}
59+
4960 publish_to_pypi :
5061 name : Publish to PyPI
5162 needs : [release_metadata, update_changelog]
0 commit comments