Skip to content

Commit b5a1055

Browse files
authored
差分の改行文字・%をエスケープしてoutputに渡す (#318)
1 parent 71cb8a4 commit b5a1055

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

action.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@ runs:
3838
if: github.event_name != 'pull_request' || github.event.action != 'closed'
3939
run: |
4040
result=$(git diff --cached)
41+
result="${result//'%'/'%25'}"
42+
result="${result//$'\n'/'%0A'}"
43+
result="${result//$'\r'/'%0D'}"
4144
echo "result=$result" >> "${GITHUB_OUTPUT}"
4245
# 差分があったときは、コミットを作りpushする
4346
- name: Push

0 commit comments

Comments
 (0)