Skip to content

Commit aab9334

Browse files
authored
Merge pull request #187 from C-Naoki/main
Update workflow to enable to customize commit message
2 parents c323019 + e6332da commit aab9334

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

actions/publish/action.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ inputs:
1010
qiita-token:
1111
required: true
1212
description: "Qiita API token"
13+
commit-message:
14+
required: false
15+
description: "Git commit message"
16+
default: "Updated by qiita-cli"
1317

1418
runs:
1519
using: "composite"
@@ -31,7 +35,7 @@ runs:
3135
if ! git diff --staged --exit-code --quiet; then
3236
git config --global user.name 'github-actions[bot]'
3337
git config --global user.email '41898282+github-actions[bot]@users.noreply.github.com'
34-
git commit -m 'Updated by qiita-cli'
38+
git commit -m ${{ inputs.commit-message }}
3539
git push
3640
fi
3741
shell: bash

0 commit comments

Comments
 (0)