docs: Use head_commit instead of commits[0]

This commit is contained in:
peaceiris 2020-01-07 00:20:56 +09:00
parent 76351d52b8
commit 37729f1bb3
1 changed files with 1 additions and 1 deletions

View File

@ -343,7 +343,7 @@ When we create a commit with a message `docs: Update some post`, a deployment co
PUBLISH_BRANCH: gh-pages
PUBLISH_DIR: ./public
with:
commitMessage: ${{ github.event.commits[0].message }}
commitMessage: ${{ github.event.head_commit.message }}
```
### ⭐️ Script mode