Tweak GH action
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
name: Verify yarn.lock
|
||||
name: Lockfile
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
@@ -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
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user