Skip to content

Commit 6c84fa0

Browse files
authored
tests CI: force usage of input SHA (#62)
2 parents c54c910 + 26c47c9 commit 6c84fa0

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/tests.yml

+6-2
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,11 @@ jobs:
2626
- name: Checkout PR commit
2727
uses: actions/checkout@v4
2828
with:
29-
ref: ${{ github.event.inputs.head_sha || github.sha }}
29+
ref: ${{ github.event.inputs.head_sha }}
30+
31+
- name: Debug head_sha
32+
run: echo "head_sha=${{ github.event.inputs.head_sha }}"
33+
3034

3135
- name: Set up Homebrew
3236
id: set-up-homebrew
@@ -55,7 +59,7 @@ jobs:
5559
if: github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch'
5660
env:
5761
HOMEBREW_ARCH: ${{ matrix.arch }}
58-
GITHUB_SHA: ${{ github.event.inputs.head_sha || github.sha }}
62+
GITHUB_SHA: ${{ github.event.inputs.head_sha }}
5963

6064
- name: Upload bottles as artifact
6165
if: always() && (github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch')

0 commit comments

Comments
 (0)