Skip to content

Commit

Permalink
ci: show changes when build is not up to date
Browse files Browse the repository at this point in the history
  • Loading branch information
antoniovazquezblanco committed Jun 17, 2024
1 parent 67c8c14 commit d9a68a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
run: npm run build

- name: Check build status
run: git diff --exit-code --quiet && echo "No changes were found :)" || { echo -e "Changes found after build.\nPlease run \"npm run build\" and commit the changes in the dist directory."; exit 1; }
run: git diff --exit-code --quiet && echo "No changes were found :)" || { git --no-pager diff; echo -e "Changes found after build.\nPlease run \"npm run build\" and commit the changes in the dist directory."; exit 1; }

- name: Test
run: npm test
Expand Down

0 comments on commit d9a68a0

Please sign in to comment.