LitoMore / git-message-action

Github action to get git message

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Github action to get git message


Languages

Language:JavaScript 100.0%