JamesIves/github-pages-deploy-action

Aborting commit due to empty commit message

jia0213 opened this issue · 2 comments

Describe the bug

When I used Git Gui to commit , I use the sign off function to generate my commit messages, there is a space line.
So that there occured a problem. I do have the commit messages. Please see the tips in below logs.

Reproduction Steps

Logs

/usr/bin/git commit -m Signed-off-by: jia0213 984419317@qq.com Updated By Github Actions --quiet --no-verify
Aborting commit due to empty commit message.

Workflow

    uses: JamesIves/github-pages-deploy-action@v4
    with:
      token: ${{secrets.IO_SSH}}
      repository-name: jia0213/jia0213.github.io
      branch: main
      folder: public
      commit-message: '${{ github.event.head_commit.message }} Updated By Github Actions'

Additional Comments

Couple of questions-

  • What happens if you remove ${{ github.event.head_commit.message }}
  • What is ${{ github.event.head_commit.message }}? Wondering if we need to escape any user provided commit message.