File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- name : Doc release
1+ name : Release docs
22
33on :
44 # Runs when manually triggered from the GitHub UI.
55 workflow_dispatch :
6+ inputs :
7+ ref :
8+ description : Git ref to checkout (branch, tag, or SHA). Defaults to the default branch.
9+ required : false
10+ type : string
11+ default : " "
612
713 # Runs when invoked by another workflow.
814 workflow_call :
915 inputs :
1016 ref :
17+ description : Git ref to checkout (branch, tag, or SHA)
1118 required : true
1219 type : string
1320
1421env :
1522 NODE_VERSION : 22
1623 PYTHON_VERSION : 3.14
17- CHECKOUT_REF : ${{ github.event_name == 'workflow_call' && inputs.ref || github.ref }}
1824
1925jobs :
2026 release_docs :
21- name : Doc release
27+ name : Release docs
2228 environment :
2329 name : github-pages
2430 permissions :
@@ -28,11 +34,20 @@ jobs:
2834 runs-on : ubuntu-latest
2935
3036 steps :
37+ - name : Determine checkout ref
38+ id : resolve_ref
39+ env :
40+ INPUT_REF : ${{ inputs.ref }}
41+ DEFAULT_BRANCH : ${{ github.event.repository.default_branch }}
42+ run : |
43+ REF="${INPUT_REF:-$DEFAULT_BRANCH}"
44+ echo "ref=$REF" >> "$GITHUB_OUTPUT"
45+
3146 - name : Checkout repository
3247 uses : actions/checkout@v6
3348 with :
3449 token : ${{ secrets.APIFY_SERVICE_ACCOUNT_GITHUB_TOKEN }}
35- ref : ${{ env.CHECKOUT_REF }}
50+ ref : ${{ steps.resolve_ref.outputs.ref }}
3651
3752 - name : Set up Node
3853 uses : actions/setup-node@v6
Original file line number Diff line number Diff line change @@ -119,7 +119,7 @@ jobs:
119119 contents : write
120120 pages : write
121121 id-token : write
122- uses : ./.github/workflows/_release_docs .yaml
122+ uses : ./.github/workflows/manual_release_docs .yaml
123123 with :
124124 # Use the version_docs commit to include both changelog and versioned docs.
125125 ref : ${{ needs.version_docs.outputs.version_docs_commitish }}
Original file line number Diff line number Diff line change 2828 contents : write
2929 pages : write
3030 id-token : write
31- uses : ./.github/workflows/_release_docs .yaml
31+ uses : ./.github/workflows/manual_release_docs .yaml
3232 with :
3333 # Use the same ref as the one that triggered the workflow.
3434 ref : ${{ github.ref }}
@@ -112,7 +112,7 @@ jobs:
112112 contents : write
113113 pages : write
114114 id-token : write
115- uses : ./.github/workflows/_release_docs .yaml
115+ uses : ./.github/workflows/manual_release_docs .yaml
116116 with :
117117 # Use the ref from the changelog update to include the updated changelog.
118118 ref : ${{ needs.changelog_update.outputs.changelog_commitish }}
You can’t perform that action at this time.
0 commit comments