Skip to content

kceb/git-message-action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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@v3

With specified SHA:

uses: kceb/git-message-action@v3
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

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •