Skip to content

Commit

Permalink
Merge pull request #19 from creative-commoners/pulls/1.0/sha1sum
Browse files Browse the repository at this point in the history
ENH Output sha1sum of files in git diff
  • Loading branch information
GuySartorelli authored Sep 15, 2023
2 parents c603c68 + 29ba937 commit d6a6ea4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,12 @@ runs:
if [[ $GIT_DIFF != "" ]]; then
echo "git diff found modified files when it should not have:"
echo $GIT_DIFF
echo "sha1sum of files that are different:"
for FILEPATH in $(git diff --cached --name-only); do
if [[ -f $FILEPATH ]]; then
sha1sum $FILEPATH
fi
done
exit 1
fi
fi
Expand Down

0 comments on commit d6a6ea4

Please sign in to comment.