Skip to content

Commit 1928887

Browse files
committed
fix: git action event head_commit message
1 parent aabdf02 commit 1928887

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
destination-github-username: scorchedrice
2626
destination-repository-name: mycode
2727
user-email: ${{ secrets.EMAIL }}
28-
commit-message: ${{ github.event.commits[0].message }}
28+
commit-message: ${{ github.event.head_commit.message || 'auto deploy' }}
2929
target-branch: main
3030
- name: Test get variable exported by push-to-another-repository
3131
run: echo $DESTINATION_CLONED_DIRECTORY

0 commit comments

Comments
 (0)