Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions .github/workflows/manual_release_docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/manual_release_stable.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Loading