From 00c290ab9cc5c10a6b381545b6a9c16e1925d073 Mon Sep 17 00:00:00 2001 From: ega4432 <38056766+ega4432@users.noreply.github.com> Date: Tue, 21 Feb 2023 20:18:30 +0900 Subject: [PATCH] tmp --- .github/workflows/check-dist.yml | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) 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!"