From c5b6fe39573d66ba4f98f8944e36879d5bd4add4 Mon Sep 17 00:00:00 2001 From: Ahmed Zetao Yang Date: Sat, 10 Oct 2020 22:15:19 +0800 Subject: [PATCH] fix: checkout of head commit during PR creation * according to https://github.com/actions/checkout/issues/61#issuecomment-561363340 --- .github/workflows/Linux-pack.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/Linux-pack.yml b/.github/workflows/Linux-pack.yml index b38b9473..5155df7d 100644 --- a/.github/workflows/Linux-pack.yml +++ b/.github/workflows/Linux-pack.yml @@ -121,7 +121,7 @@ jobs: uses: actions/checkout@v1 with: fetch-depth: 0 - ref: ${{ github.event.pull_request.head.ref }} + ref: refs/pull/${{ github.event.number }}/head - name: Set env & Print flameshot version shell: bash run: |