Skip to content

Commit

Permalink
Update build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Minecraftschurli authored Sep 5, 2023
1 parent fe9968f commit 818569f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,13 @@ jobs:
if: ${{ inputs.check-datagen }}
id: check-data
run: |
if [ "$(git diff --ignore-space-at-eol --text ${{ inputs.datagen-folder }} | wc -l)" -gt "0" ]; then
changes_diff=$(git diff --ignore-space-at-eol --text ${{ inputs.datagen-folder }} | wc -l)
changes_status=$(git status --porcelain ${{ inputs.datagen-folder }} | wc -l)
changes=$(( $changes_diff + $changes_status ))
if [ "$changes" -gt "0" ]; then
echo "Detected uncommitted changes after build. See status below:"
git diff --ignore-space-at-eol --text ${{ inputs.datagen-folder }}
git status ${{ inputs.datagen-folder }}
exit 1
fi
Expand Down

0 comments on commit 818569f

Please sign in to comment.