Skip to content

Commit 37729f1

Browse files
committed
docs: Use head_commit instead of commits[0]
1 parent 76351d5 commit 37729f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ When we create a commit with a message `docs: Update some post`, a deployment co
343343
PUBLISH_BRANCH: gh-pages
344344
PUBLISH_DIR: ./public
345345
with:
346-
commitMessage: ${{ github.event.commits[0].message }}
346+
commitMessage: ${{ github.event.head_commit.message }}
347347
```
348348

349349
### ⭐️ Script mode

0 commit comments

Comments
 (0)