docs: Add example image for commit_message

This commit is contained in:
peaceiris 2020-05-04 10:27:29 +09:00
parent db3e60d230
commit f559ed8889
No known key found for this signature in database
GPG Key ID: 5868468A8EBA64EC
2 changed files with 3 additions and 1 deletions

View File

@ -385,7 +385,7 @@ A commit is always created with the same user.
### ⭐️ Set custom commit message ### ⭐️ Set custom commit message
Set custom commit message. Set a custom commit message.
When we create a commit with a message `docs: Update some post`, a deployment commit will be generated with a message `docs: Update some post ${GITHUB_SHA}`. When we create a commit with a message `docs: Update some post`, a deployment commit will be generated with a message `docs: Update some post ${GITHUB_SHA}`.
```yaml ```yaml
@ -397,6 +397,8 @@ When we create a commit with a message `docs: Update some post`, a deployment co
commit_message: ${{ github.event.head_commit.message }} commit_message: ${{ github.event.head_commit.message }}
``` ```
![Set a custom commit message - GitHub Actions for GitHub Pages](./images/commit_message.jpg)
To set a full custom commit message without a triggered commit hash, To set a full custom commit message without a triggered commit hash,
use the `full_commit_message` option instead of the `commit_message` option. use the `full_commit_message` option instead of the `commit_message` option.

BIN
images/commit_message.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 39 KiB