File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ node_modules
Original file line number Diff line number Diff line change @@ -23,13 +23,17 @@ inputs:
2323runs :
2424 using : " composite"
2525 steps :
26+ - shell : bash
27+ if : github.event_name != 'pull_request' || github.event.action != 'closed'
28+ name : git add
29+ run : git add -A
2630 # 差分があったときは差分を出力する
2731 - name : Show diff
2832 id : diff
2933 shell : bash
3034 if : github.event_name != 'pull_request' || github.event.action != 'closed'
3135 run : |
32- result=$(git diff)
36+ result=$(git diff --cached )
3337 echo "::set-output name=result::$result"
3438 # 差分があったときは、コミットを作りpushする
3539 - name : Push
4246 git config user.name "github-actions[bot]"
4347 EMAIL="41898282+github-actions[bot]@users.noreply.github.com"
4448 git config user.email "${EMAIL}"
45- git add -u
4649 git commit -m "${{inputs.pr-title-prefix}}"
4750 REPO_URL="https://"
4851 REPO_URL+="${{github.actor}}:${{inputs.github-token}}@github.com/"
You can’t perform that action at this time.
0 commit comments