Skip to content

Commit

Permalink
Try to fix action
Browse files Browse the repository at this point in the history
  • Loading branch information
gaearon committed Dec 19, 2024
1 parent 513a188 commit 2454040
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/verify-yarn-lock.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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`.'
Expand Down

0 comments on commit 2454040

Please sign in to comment.