Skip to content

Commit

Permalink
Tweak GH action
Browse files Browse the repository at this point in the history
  • Loading branch information
gaearon committed Dec 19, 2024
1 parent 2454040 commit 59739a6
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions .github/workflows/verify-yarn-lock.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Verify yarn.lock
name: Lockfile

on:
pull_request:
Expand All @@ -8,7 +8,7 @@ concurrency:

jobs:
verify-yarn-lock:
name: Verify yarn.lock changes
name: No manual yarn.lock edits
runs-on: ubuntu-latest
steps:
- name: Check out PR HEAD
Expand All @@ -32,11 +32,9 @@ jobs:
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`.'
echo '::error::1. If this is intentional, you can ignore this check.'
echo '::error::2. If this is not intentional, apply the following diff:'
echo '```diff'
git --no-pager diff -R
echo '```'
echo '::error:: - If this is intentional, you can ignore this check.'
echo '::error:: - If this is unintentional, apply the following diff:'
git --no-pager diff
exit 1
}
attempt_limit: 3
Expand Down

0 comments on commit 59739a6

Please sign in to comment.