From 168c668009c6bc8069b0243352f1031e07609eec Mon Sep 17 00:00:00 2001 From: Vlada Dusek Date: Thu, 4 Jun 2026 13:37:42 +0200 Subject: [PATCH] ci: build release docs from the branch tip, not the dispatch ref MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Aligns the release docs deploy with apify/crawlee-python: the docs build now checks out the up-to-date branch tip (via a new optional `ref` input) instead of the workflow-dispatch commit, which predates the changelog finalization and version snapshot pushed earlier in the run. The build already reached the latest master here through the theme-update step's pull, so this is effectively a no-op — it just makes the behavior explicit and keeps the three repos' release pipelines identical. --- .github/workflows/manual_release_docs.yaml | 13 +++++++++++++ .github/workflows/manual_release_stable.yaml | 6 ++++++ 2 files changed, 19 insertions(+) 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