Skip to content

Warning

You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?

Git Message

Actions
Get the git message associated with the current SHA
v2.0.0
By kceb
Star (3)

Git Message Action

This action outputs the git message associated with the current SHA

Inputs

sha

Optional The sha of the commit to get the message for. Defaults to the GITHUB_SHA environment variable set by Github.

Outputs

git-message

The git-message

title

The title of the git-message, i.e. the first line

body

The body of the git-message, i.e. everything but the first line

Example usage

Without SHA:

uses: kceb/git-message-action@v2

With specified SHA:

uses: kceb/git-message-action@v2
with:
  sha: '2905893ab6e5f2644201c2abc04e3d83bf317d9b'

For more info on how to use outputs: https://help.github.com/en/actions/reference/contexts-and-expression-syntax-for-github-actions#steps-context

Git Message is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

Get the git message associated with the current SHA
v2.0.0
By kceb

Git Message is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.