Skip to content

Commit 0494bcb

Browse files
authored
fix: checkout correct sha (#4091)
1 parent edf7782 commit 0494bcb

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

.github/workflows/custard-run-dev.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,8 @@ jobs:
8282
if: ${{ !!github.event.workflow_run }}
8383
- name: Checkout
8484
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
85+
with:
86+
ref: ${{ github.event.workflow_run.head_sha || inputs.ref || github.sha }}
8587
- name: Authenticate
8688
uses: google-github-actions/auth@ba79af03959ebeac9769e648f473a284504d9193 # v2.1.10
8789
id: auth

.github/workflows/custard-run.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,8 @@ jobs:
7777
if: ${{ !!github.event.workflow_run }}
7878
- name: Checkout
7979
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
80+
with:
81+
ref: ${{ github.event.workflow_run.head_sha || inputs.ref || github.sha }}
8082
- name: Setup Node
8183
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
8284
with:

0 commit comments

Comments
 (0)