Skip to content

Commit

Permalink
差分がないときにエラーになる問題の修正
Browse files Browse the repository at this point in the history
  • Loading branch information
Seasawher committed Feb 10, 2024
1 parent 9fc95f2 commit 4e4b21b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/mk_exercise.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,15 @@ jobs:
- name: make exercise
run: lake exe mk_exercise Solution Tutorial

- name: diff
id: diff
run: |
git add -N Tutorial
git diff --name-only --exit-code
continue-on-error: true

- name: commit
if: steps.diff.outcome == 'failure'
run: |
git config user.name "GitHub Action"
git config user.email "[email protected]"
Expand Down

0 comments on commit 4e4b21b

Please sign in to comment.