Skip to content

Commit

Permalink
ignore crlf
Browse files Browse the repository at this point in the history
  • Loading branch information
lirlia committed Oct 7, 2024
1 parent 3ca1080 commit 2d5f202
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/code_gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,14 @@ jobs:

- name: push commit
run: |
set -x
git config --local user.email '${{ steps.generate-token.outputs.app-slug }}@users.noreply.github.com'
git config --local user.name '${{ steps.app-token.outputs.app-slug }}[bot]'
git diff
git status
if [ -z "$(git status --porcelain)" ]; then
if [ "$(git diff --ignore-cr-at-eol --ignore-space-at-eol dist/ | wc -l)" -eq "0" ]; then
echo "Working directory clean"
exit 0
fi
Expand Down

0 comments on commit 2d5f202

Please sign in to comment.