diff --git a/.github/workflows/manual_regenerate_models.yaml b/.github/workflows/manual_regenerate_models.yaml index 84cfde08..93433ab9 100644 --- a/.github/workflows/manual_regenerate_models.yaml +++ b/.github/workflows/manual_regenerate_models.yaml @@ -104,16 +104,15 @@ jobs: uv run poe generate-models fi - - name: Commit and push model changes + - name: Commit model changes id: commit - uses: EndBug/add-and-commit@v10 + uses: apify/actions/signed-commit@v1.0.0 with: - add: 'src/apify_client/_*_generated.py' - author_name: apify-service-account - author_email: apify-service-account@users.noreply.github.com message: ${{ env.TITLE }} - commit: --no-verify - push: -u origin ${{ env.BRANCH }} + add: 'src/apify_client/_*_generated.py' + github-token: ${{ secrets.APIFY_SERVICE_ACCOUNT_GITHUB_TOKEN }} + branch: ${{ env.BRANCH }} + create-branch: 'true' - name: Create or update PR if: steps.commit.outputs.committed == 'true' diff --git a/.github/workflows/manual_release_beta.yaml b/.github/workflows/manual_release_beta.yaml index 5be9517e..6a7f8db2 100644 --- a/.github/workflows/manual_release_beta.yaml +++ b/.github/workflows/manual_release_beta.yaml @@ -72,7 +72,4 @@ jobs: pages: write id-token: write uses: ./.github/workflows/manual_release_docs.yaml - with: - # Use the ref from the changelog update to include the updated changelog. - ref: ${{ needs.changelog_update.outputs.changelog_commitish }} secrets: inherit diff --git a/.github/workflows/manual_release_docs.yaml b/.github/workflows/manual_release_docs.yaml index 4fe89f0c..1e076b41 100644 --- a/.github/workflows/manual_release_docs.yaml +++ b/.github/workflows/manual_release_docs.yaml @@ -6,11 +6,6 @@ on: # Runs when invoked by another workflow. workflow_call: - inputs: - ref: - description: Git ref to checkout. - required: true - type: string permissions: contents: read @@ -35,7 +30,6 @@ jobs: uses: actions/checkout@v6 with: token: ${{ secrets.APIFY_SERVICE_ACCOUNT_GITHUB_TOKEN }} - ref: ${{ inputs.ref || github.event.repository.default_branch }} - name: Set up Node uses: actions/setup-node@v6 @@ -64,14 +58,12 @@ jobs: run: uv run poe update-docs-theme - name: Commit the updated package.json and lockfile - uses: EndBug/add-and-commit@v10 + uses: apify/actions/signed-commit@v1.0.0 with: - add: website/package.json website/pnpm-lock.yaml message: "chore: Automatic docs theme update [skip ci]" - default_author: github_actions + add: 'website/package.json website/pnpm-lock.yaml' pull: '--rebase --autostash' - # `actions/checkout` detaches HEAD on SHA refs; EndBug needs a branch to push. - new_branch: ${{ github.event.repository.default_branch }} + github-token: ${{ secrets.APIFY_SERVICE_ACCOUNT_GITHUB_TOKEN }} - name: Build docs run: uv run poe build-docs diff --git a/.github/workflows/manual_release_stable.yaml b/.github/workflows/manual_release_stable.yaml index 9460e63e..c52d9371 100644 --- a/.github/workflows/manual_release_stable.yaml +++ b/.github/workflows/manual_release_stable.yaml @@ -108,9 +108,6 @@ jobs: permissions: contents: write uses: ./.github/workflows/manual_version_docs.yaml - with: - # Commit the version docs changes on top of the changelog commit. - ref: ${{ needs.changelog_update.outputs.changelog_commitish }} secrets: inherit doc_release: @@ -121,7 +118,4 @@ jobs: pages: write id-token: write uses: ./.github/workflows/manual_release_docs.yaml - with: - # Commit the docs release changes on top of the version docs commit. - ref: ${{ needs.version_docs.outputs.version_docs_commitish }} secrets: inherit diff --git a/.github/workflows/manual_version_docs.yaml b/.github/workflows/manual_version_docs.yaml index 3ba73695..30ac5bd7 100644 --- a/.github/workflows/manual_version_docs.yaml +++ b/.github/workflows/manual_version_docs.yaml @@ -6,15 +6,6 @@ on: # Runs when invoked by another workflow. workflow_call: - inputs: - ref: - description: Git ref to checkout. - required: true - type: string - outputs: - version_docs_commitish: - description: The commit SHA of the versioned docs commit. - value: ${{ jobs.version_docs.outputs.version_docs_commitish }} concurrency: group: version-docs @@ -31,8 +22,6 @@ jobs: version_docs: name: Version docs runs-on: ubuntu-latest - outputs: - version_docs_commitish: ${{ steps.resolve_commitish.outputs.commitish }} permissions: contents: write @@ -41,7 +30,6 @@ jobs: uses: actions/checkout@v6 with: token: ${{ secrets.APIFY_SERVICE_ACCOUNT_GITHUB_TOKEN }} - ref: ${{ inputs.ref || github.event.repository.default_branch }} - name: Set up Node uses: actions/setup-node@v6 @@ -105,19 +93,9 @@ jobs: uv run pnpm exec docusaurus api:version "$MAJOR_MINOR_VERSION" - name: Commit and push versioned docs - id: commit_versioned_docs - uses: EndBug/add-and-commit@v10 + uses: apify/actions/signed-commit@v1.0.0 with: - add: website/versioned_docs website/versioned_sidebars website/versions.json message: "docs: Version docs for v${{ steps.snapshot.outputs.version }} [skip ci]" - default_author: github_actions + add: 'website/versioned_docs website/versioned_sidebars website/versions.json' pull: '--rebase --autostash' - # `actions/checkout` detaches HEAD on SHA refs; EndBug needs a branch to push. - new_branch: ${{ github.event.repository.default_branch }} - - - name: Resolve output commitish - id: resolve_commitish - env: - COMMIT_SHA: ${{ steps.commit_versioned_docs.outputs.commit_long_sha }} - run: | - echo "commitish=${COMMIT_SHA:-$(git rev-parse HEAD)}" >> "$GITHUB_OUTPUT" + github-token: ${{ secrets.APIFY_SERVICE_ACCOUNT_GITHUB_TOKEN }} diff --git a/.github/workflows/on_master.yaml b/.github/workflows/on_master.yaml index 11f133e1..e6ab480f 100644 --- a/.github/workflows/on_master.yaml +++ b/.github/workflows/on_master.yaml @@ -25,9 +25,6 @@ jobs: pages: write id-token: write uses: ./.github/workflows/manual_release_docs.yaml - with: - # Use the same ref as the one that triggered the workflow. - ref: ${{ github.ref }} secrets: inherit code_checks: