From 9e954a2c8b5d8b34dde90405a4e74bfb11040271 Mon Sep 17 00:00:00 2001 From: Nik Clayton Date: Tue, 23 Apr 2024 15:26:17 +0200 Subject: [PATCH] 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. --- .github/workflows/apk-on-comment.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/apk-on-comment.yml b/.github/workflows/apk-on-comment.yml index cb0c894de..928e57ee0 100644 --- a/.github/workflows/apk-on-comment.yml +++ b/.github/workflows/apk-on-comment.yml @@ -24,10 +24,10 @@ jobs: token: ${{ secrets.GITHUB_TOKEN }} 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 with: - ref: ${{ steps.comment-branch.outputs.head_ref }} + ref: ${{ steps.comment-branch.outputs.head_sha }} - uses: ./.github/actions/setup-build-env with: