File tree Expand file tree Collapse file tree 3 files changed +14
-13
lines changed Expand file tree Collapse file tree 3 files changed +14
-13
lines changed Original file line number Diff line number Diff line change @@ -32,13 +32,13 @@ inputs:
3232runs :
3333 using : " composite"
3434 steps :
35- # 差分があったときは差分を出力する
36- - name : Show diff
35+ # 差分があったときに検知する
36+ - name : Detect diff
3737 id : diff
3838 shell : bash
3939 if : github.event_name != 'pull_request' || github.event.action != 'closed'
4040 working-directory : ${{inputs.working-directory}}
41- run : ${{ github.action_path }}/src/show_diff .sh
41+ run : ${{ github.action_path }}/src/detect_diff .sh
4242 - name : Set env
4343 id : set-env
4444 shell : bash
Original file line number Diff line number Diff line change 1+ #! /usr/bin/env bash
2+
3+ git add -A
4+
5+ if git diff --cached --quiet; then
6+ result=" "
7+ else
8+ result=" 差分あり"
9+ fi
10+
11+ echo " result=$result " >> " ${GITHUB_OUTPUT} "
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments