Skip to content

Commit

Permalink
use git porcelain
Browse files Browse the repository at this point in the history
  • Loading branch information
fadeev committed May 27, 2024
1 parent ae3c483 commit a028021
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/generated-files.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ jobs:
- name: Check for changes
run: |
if git diff --exit-code --ignore-space-change --ignore-all-space --ignore-cr-at-eol -- docs pkg typechain-types; then
echo "Generated Go files are up-to-date."
if [ -z "$(git status --porcelain docs pkg typechain-types)" ]; then
echo "Generated files are up-to-date."
else
echo "::error::Generated files are not up-to-date. Please run 'yarn generate' locally and commit any changes."
exit 1
Expand Down

0 comments on commit a028021

Please sign in to comment.