From 59739a6088e8ff03ac8210c343b42d16a4a13d67 Mon Sep 17 00:00:00 2001 From: Dan Abramov Date: Thu, 19 Dec 2024 05:36:19 +0000 Subject: [PATCH] Tweak GH action --- .github/workflows/verify-yarn-lock.yml | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/.github/workflows/verify-yarn-lock.yml b/.github/workflows/verify-yarn-lock.yml index bd946d7f38..aa4568f5cf 100644 --- a/.github/workflows/verify-yarn-lock.yml +++ b/.github/workflows/verify-yarn-lock.yml @@ -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