diff --git a/.github/workflows/check-dist.yml b/.github/workflows/check-dist.yml index 2a8f99c..36779b8 100644 --- a/.github/workflows/check-dist.yml +++ b/.github/workflows/check-dist.yml @@ -40,7 +40,7 @@ jobs: - name: Compare the expected and actual dist/ directories run: | - if [ "$(git diff --ignore-space-at-eol dist/ | wc -l)" -gt "0" ]; then + if [ "$(git diff --ignore-space-at-eol --text dist/ | wc -l)" -gt "0" ]; then echo "Detected uncommitted changes after build. See status below:" git diff exit 1 @@ -50,9 +50,4 @@ jobs: # NOTE: src/ と dist/ が一致することを保証するため差分があれば commit する - name: Commit dist/ if: ${{ failure() && steps.diff.conclusion == 'failure' }} - run: | - git config --local user.email "action@github.com" - git config --local user.name "GitHub Action" - git add dist/ - git commit -m '[github-action] update dist' - git push + run: echo "diff is found!"