From 5a175327877e9d52e1cb7f06b5dac37e0682ff42 Mon Sep 17 00:00:00 2001 From: Dylan Perks Date: Sat, 21 Dec 2024 18:18:23 +0000 Subject: [PATCH] Use official action to checkout PR --- .github/workflows/native.yml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/native.yml b/.github/workflows/native.yml index 9c01b30a91..142e2bafd6 100644 --- a/.github/workflows/native.yml +++ b/.github/workflows/native.yml @@ -80,11 +80,9 @@ jobs: runs-on: ubuntu-latest if: ${{ needs.prerequisites.outputs.targets_referenced }} steps: - - uses: actions/checkout@v3 - - name: Checkout PR - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: gh pr checkout ${{ github.event.pull_request.number }} + - uses: actions/checkout@v4 + with: + ref: ${{ github.head_ref }} - name: Download All Artifacts uses: actions/download-artifact@v4 with: