Skip to content

Commit e679d54

Browse files
committed
chore(ci): Align GitHub workflows across Python projects
1 parent 794ca09 commit e679d54

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

.github/workflows/build_and_deploy_docs.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
workflow_dispatch:
88

99
env:
10-
NODE_VERSION: 20
10+
NODE_VERSION: 22
1111
PYTHON_VERSION: 3.14
1212

1313
jobs:
@@ -67,6 +67,8 @@ jobs:
6767

6868
- name: Build Docusaurus docs
6969
run: make build-docs
70+
env:
71+
APIFY_SIGNING_TOKEN: ${{ secrets.APIFY_SIGNING_TOKEN }}
7072

7173
- name: Set up GitHub Pages
7274
uses: actions/configure-pages@v5

.github/workflows/pre_release.yaml

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -32,18 +32,13 @@ jobs:
3232
release_type: prerelease
3333
existing_changelog_path: CHANGELOG.md
3434

35-
# If github.ref points to a [ci skip] commit, this workflow won't run.
36-
# Otherwise, these checks will be launched from the `run_code_checks` workflow.
37-
wait_for_checks:
38-
name: Wait for code checks to pass
39-
uses: apify/workflows/.github/workflows/wait_for_checks.yaml@wait-for-checks-action
40-
with:
41-
ref: ${{ github.ref }}
42-
check-regexp: "( check| tests)$"
35+
run_code_checks:
36+
name: Run code checks
37+
uses: ./.github/workflows/run_code_checks.yaml
4338

4439
update_changelog:
4540
name: Update changelog
46-
needs: [release_metadata, wait_for_checks]
41+
needs: [release_metadata, run_code_checks]
4742
uses: apify/workflows/.github/workflows/python_bump_and_update_changelog.yaml@main
4843
with:
4944
version_number: ${{ needs.release_metadata.outputs.version_number }}
@@ -53,7 +48,7 @@ jobs:
5348

5449
publish_to_pypi:
5550
name: Publish to PyPI
56-
needs: [release_metadata, wait_for_checks, update_changelog]
51+
needs: [release_metadata, run_code_checks, update_changelog]
5752
runs-on: ubuntu-latest
5853
permissions:
5954
contents: write

.github/workflows/run_code_checks.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ on:
1111
# It should also be possible to trigger checks manually
1212
workflow_dispatch:
1313

14+
# Allow this workflow to be invoked as a reusable workflow from other workflows
15+
workflow_call:
16+
1417
jobs:
1518
actions_lint_check:
1619
name: Actions lint check

0 commit comments

Comments
 (0)