fix(ci): checkout promotion PR head for metadata refresh (#1097)

This commit is contained in:
Henry Park
2026-03-12 21:32:28 -07:00
committed by GitHub
parent 5e7758598f
commit 1e00b1fed5
@@ -31,10 +31,12 @@ jobs:
github.event_name == 'workflow_dispatch'
runs-on: ubuntu-latest
steps:
- name: Checkout base branch
- name: Checkout workflow source
uses: actions/checkout@v6
with:
ref: ${{ github.event_name == 'workflow_dispatch' && 'main' || github.event.pull_request.base.ref }}
# For chained promotion PRs, the script lives on the trusted PR head,
# not necessarily on the older promotion branch used as the PR base.
ref: ${{ github.event_name == 'workflow_dispatch' && 'main' || github.event.pull_request.head.sha }}
fetch-depth: 0
fetch-tags: true