From 29ba937f84dda0851cc489ab8f79766dd8e146ca Mon Sep 17 00:00:00 2001 From: Steve Boyd Date: Fri, 15 Sep 2023 12:37:04 +1200 Subject: [PATCH] ENH Output sha1sum of files in git diff --- action.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/action.yml b/action.yml index d7a1355..39e91f9 100644 --- a/action.yml +++ b/action.yml @@ -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