Skip to content

Commit fbd5444

Browse files
committed
CI: load install-gh-cli from the workflow revision in test-wheel-linux
test-wheel-linux checks out inputs.sha, which can predate the install-gh-cli action. Use $/ like setup-hardened-python so the action resolves at the workflow's commit.
1 parent f17586a commit fbd5444

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎.github/workflows/test-wheel-linux.yml‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,9 @@ jobs:
219219
- name: Install GitHub CLI
220220
if: ${{ (env.TEST_BINDINGS == 'true' || env.TEST_CORE == 'true' || env.TEST_PYTHON == 'true') &&
221221
env.BINDINGS_SOURCE == 'backport' }}
222-
uses: ./.github/actions/install-gh-cli
222+
# $/ resolves at the workflow's commit. ./ would resolve against the
223+
# inputs.sha checkout, which can predate this action.
224+
uses: $/.github/actions/install-gh-cli
223225

224226
- name: Look up prior-branch artifacts run ID
225227
id: prior

0 commit comments

Comments
 (0)