Skip to content

Commit 31e492b

Browse files
authored
Ensure we have the proper sha reference (#22066)
1 parent 8409ff7 commit 31e492b

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

.github/workflows/zz-test-worker-poc.yaml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,12 @@ on:
77
description: 'JSON string defining the dynamic matrices for all jobs'
88
required: true
99
type: string
10-
ref:
11-
description: 'Commit SHA to check out. Use PR head SHA to report as PR check.'
10+
checkout_ref:
11+
description: 'Commit SHA to check out. This is the commit where the repo will be checked out.'
12+
required: true
13+
type: string
14+
source_sha:
15+
description: 'Source SHA to use for the check run'
1216
required: true
1317
type: string
1418
name:
@@ -41,7 +45,7 @@ jobs:
4145
owner: context.repo.owner,
4246
repo: context.repo.repo,
4347
name: 'Test Worker POC - ${{ inputs.name }}',
44-
head_sha: '${{ inputs.ref }}',
48+
head_sha: '${{ inputs.source_sha }}',
4549
status: 'in_progress',
4650
details_url: '${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}',
4751
output: {
@@ -61,7 +65,7 @@ jobs:
6165
- name: Check out repository
6266
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
6367
with:
64-
ref: ${{ inputs.ref }}
68+
ref: ${{ inputs.checkout_ref }}
6569

6670
- name: Set up Python
6771
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065
@@ -95,7 +99,7 @@ jobs:
9599
- name: Check out repository
96100
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
97101
with:
98-
ref: ${{ inputs.ref }}
102+
ref: ${{ inputs.checkout_ref }}
99103

100104
- name: Run Generic Task
101105
run: |

0 commit comments

Comments
 (0)