From fa89c71e98bf8e512996bed308ea95c441ec087d Mon Sep 17 00:00:00 2001 From: Tony Sullivan Date: Tue, 13 Sep 2022 20:48:39 +0000 Subject: [PATCH] resolving PR refs in snapshot release action (#4744) --- .github/workflows/snapshot-release.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/snapshot-release.yml b/.github/workflows/snapshot-release.yml index ade8d24d6..3e2f3828e 100644 --- a/.github/workflows/snapshot-release.yml +++ b/.github/workflows/snapshot-release.yml @@ -40,10 +40,16 @@ jobs: }) || core.setFailed('Invalid comment format. Expected: "!preview "')); return splitComment[1].trim(); result-encoding: string + + - name: resolve pr refs + id: refs + uses: eficode/resolve-pr-refs@main + with: + token: ${{ secrets.GITHUB_TOKEN }} - uses: actions/checkout@v3 with: - ref: ${{ github.event.inputs.ref }} + ref: ${{ steps.refs.outputs.base_ref }} - name: Setup PNPM uses: pnpm/action-setup@v2.2.1