Skip to content

Commit

Permalink
chore(ci): Report diff in _diff:fail in GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
jsoref committed Jan 21, 2025
1 parent c0a5eea commit 2a6b928
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"_check:registry": "npx gulp validate-registry",
"_check:text": "npx textlint content data `ls *.md`",
"_diff:check": "git diff --name-only --exit-code",
"_diff:fail": "git diff --name-only --exit-code || exit 1",
"_diff:fail": "if ! git diff --name-only --exit-code; then if [ -n \"$GITHUB_STEP_SUMMARY\" ]; then ( echo '## git diff'; echo '```diff'; echo; git diff; echo '```' ) >> \"$GITHUB_STEP_SUMMARY\"; fi; exit 1; fi",
"_fail": "exit 1",
"_filename-error": "echo 'ERROR: the following files violate naming conventions; fix using: `npm run fix:filenames`'; echo; npm run -s _ls-bad-filenames; exit 1",
"_get:no": "echo SKIPPING get operation",
Expand Down

0 comments on commit 2a6b928

Please sign in to comment.