From 69e974e9f2a1da420102f962557bb26a69a5d6ee Mon Sep 17 00:00:00 2001 From: William French Date: Wed, 26 Feb 2025 10:39:08 -0800 Subject: [PATCH] fix: Update dist-pr.yml Adds fetch-depth: 2. This tells actions/checkout to fetch the current commit and the preceding commit, ensuring that github.event.before will be available. Should solve the newly resurrected detached head problem. --- .github/workflows/dist-pr.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/dist-pr.yml b/.github/workflows/dist-pr.yml index 7b09a617..0265816c 100644 --- a/.github/workflows/dist-pr.yml +++ b/.github/workflows/dist-pr.yml @@ -28,6 +28,7 @@ jobs: with: ref: dist token: ${{ secrets.GH_MERGE_TOKEN }} + fetch-depth: 2 - name: Checkout Previous Commit run: git checkout ${{ github.event.before }}