diff --git a/.github/workflows/manual_release_beta.yaml b/.github/workflows/manual_release_beta.yaml index f4a54302..afdd9398 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 6283659f..47b8418b 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,9 +118,6 @@ 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 trigger_docker_build: diff --git a/.github/workflows/manual_version_docs.yaml b/.github/workflows/manual_version_docs.yaml index b5d040af..bb361e96 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,21 +30,10 @@ jobs: working-directory: website steps: - - name: Determine checkout ref - id: resolve_ref - working-directory: . - env: - INPUT_REF: ${{ inputs.ref }} - DEFAULT_BRANCH: ${{ github.event.repository.default_branch }} - run: | - REF="${INPUT_REF:-$DEFAULT_BRANCH}" - echo "ref=$REF" >> "$GITHUB_OUTPUT" - - name: Checkout repository 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 @@ -118,19 +96,9 @@ jobs: 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 - # `actions/checkout` detaches HEAD on SHA refs; EndBug needs a branch to push. - new_branch: ${{ github.event.repository.default_branch }} + add: 'website/versioned_docs website/versioned_sidebars website/versions.json' pull: '--rebase --autostash' - - - 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 8528530e..07238b36 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: