about summary refs log tree commit diff
path: root/.github
diff options
context:
space:
mode:
authorDan Abramov <dan.abramov@gmail.com>2024-12-19 05:19:57 +0000
committerDan Abramov <dan.abramov@gmail.com>2024-12-19 05:24:05 +0000
commit24540400d93df77511caa10737a7c5b808072579 (patch)
treed12f4349c9e5a5150aec898c6f090b7049c7dc8a /.github
parent513a188a219271bb527f8a4cf3ad978116a407e3 (diff)
downloadvoidsky-24540400d93df77511caa10737a7c5b808072579.tar.zst
Try to fix action
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/verify-yarn-lock.yml9
1 files changed, 7 insertions, 2 deletions
diff --git a/.github/workflows/verify-yarn-lock.yml b/.github/workflows/verify-yarn-lock.yml
index f5f521e76..bd946d7f3 100644
--- a/.github/workflows/verify-yarn-lock.yml
+++ b/.github/workflows/verify-yarn-lock.yml
@@ -11,19 +11,24 @@ jobs:
     name: Verify yarn.lock changes
     runs-on: ubuntu-latest
     steps:
-      - name: Check out Git repository
+      - name: Check out PR HEAD
         uses: actions/checkout@v3
         with:
           fetch-depth: 0
+
+      - name: Fetch base branch
+        run: git fetch origin ${{ github.base_ref }} --depth=1
+
       - name: Install node
         uses: actions/setup-node@v4
         with:
           node-version-file: .nvmrc
+
       - name: Verify yarn.lock
         uses: Wandalen/wretry.action@master
         with:
           command: |
-            git show "${{ github.base_ref }}:yarn.lock" > yarn.lock
+            git show "origin/${{ github.base_ref }}:yarn.lock" > yarn.lock
             yarn
             git diff --quiet --exit-code || {
               echo '::error::`yarn.lock` does not match what Yarn would generate given the base `yarn.lock` and the head `package.json`.'