diff --git a/.github/workflows/manual_release_docs.yaml b/.github/workflows/manual_release_docs.yaml index 1b0acc6b..f781a3d3 100644 --- a/.github/workflows/manual_release_docs.yaml +++ b/.github/workflows/manual_release_docs.yaml @@ -3,9 +3,21 @@ name: Release docs on: # Runs when manually triggered from the GitHub UI. workflow_dispatch: + inputs: + ref: + description: Commit SHA or ref to build the docs from. If empty, the triggering ref is used. + required: false + type: string + default: "" # Runs when invoked by another workflow. workflow_call: + inputs: + ref: + description: Commit SHA or ref to build the docs from. If empty, the triggering ref is used. + required: false + type: string + default: "" permissions: contents: read @@ -39,6 +51,7 @@ jobs: - name: Checkout repository uses: actions/checkout@v6 with: + ref: ${{ inputs.ref }} token: ${{ secrets.APIFY_SERVICE_ACCOUNT_GITHUB_TOKEN }} - name: Set up Node diff --git a/.github/workflows/manual_release_stable.yaml b/.github/workflows/manual_release_stable.yaml index 506f110f..3a8af537 100644 --- a/.github/workflows/manual_release_stable.yaml +++ b/.github/workflows/manual_release_stable.yaml @@ -144,4 +144,10 @@ jobs: id-token: write checks: read uses: ./.github/workflows/manual_release_docs.yaml + with: + # Build from the up-to-date branch tip, not the workflow-dispatch ref. The default checkout + # pins to the dispatch commit (pre-bump), which predates the changelog finalization and the + # version snapshot pushed earlier in this run — so the docs would be redeployed from stale + # content (e.g. the changelog stuck at "not yet released"). + ref: ${{ github.ref_name }} secrets: inherit