ci: apk-on-comment: Checkout by SHA (#641)

apk-on-comment checkout is failing on PRs from forked repositories,
possibly because it can't find the ref.

Try and fix this by using the SHA when checking out.
This commit is contained in:
Nik Clayton 2024-04-23 15:26:17 +02:00 committed by GitHub
parent b3bce36ccc
commit 9e954a2c8b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -24,10 +24,10 @@ jobs:
token: ${{ secrets.GITHUB_TOKEN }} token: ${{ secrets.GITHUB_TOKEN }}
status: pending status: pending
- name: Checkout PR branch ${{ steps.comment-branch.outputs.head_ref }} - name: Checkout PR branch ${{ steps.comment-branch.outputs.head_ref }} / ${{ steps.comment-branch.outputs.head_sha }}
uses: actions/checkout@1d96c772d19495a3b5c517cd2bc0cb401ea0529f # v4 uses: actions/checkout@1d96c772d19495a3b5c517cd2bc0cb401ea0529f # v4
with: with:
ref: ${{ steps.comment-branch.outputs.head_ref }} ref: ${{ steps.comment-branch.outputs.head_sha }}
- uses: ./.github/actions/setup-build-env - uses: ./.github/actions/setup-build-env
with: with: