Skip to content

Commit 97f4d72

Browse files
committed
fix: using pull_request.head.sha for checkout on PR events
1 parent 1fa4cbb commit 97f4d72

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

.github/workflows/build-and-push-images.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ jobs:
3535
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
3636
with:
3737
fetch-tags: true
38+
ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.ref }}
3839
- uses: docker/setup-buildx-action@b5ca514318bd6ebac0fb2aedd5d36ec1b5c232a2
3940
- id: gcp-auth
4041
name: Google authentication

0 commit comments

Comments
 (0)