GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - rlespinasse/git-commit-data-action: Action to expose git commit info

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

Latest commit

 

History

65 Commits
65 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
tests
tests
 
 
.editorconfig
.editorconfig
 
 
CODE_OF_CONDUCT.md
CODE_OF_CONDUCT.md
 
 
CONTRIBUTING.md
CONTRIBUTING.md
 
 
DEVELOPER.md
DEVELOPER.md
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
SECURITY.md
SECURITY.md
 
 
action.yml
action.yml
 
 
git-commit-data.sh
git-commit-data.sh
 
 

Repository files navigation

Git commit data action

This action exposes git commit data.

  • GIT_COMMIT_SHA expose commit hash
  • GIT_COMMIT_SHORT_SHA expose abbreviated commit hash
  • GIT_COMMIT_AUTHOR expose Author name <[email protected]>
  • GIT_COMMIT_AUTHOR_NAME expose Author name
  • GIT_COMMIT_AUTHOR_EMAIL expose [email protected]
  • GIT_COMMIT_COMMITTER expose Committer name <[email protected]>
  • GIT_COMMIT_COMMITTER_NAME expose Committer name
  • GIT_COMMIT_COMMITTER_EMAIL expose [email protected]
  • GIT_COMMIT_MESSAGE_SUBJECT expose The first line of the commit message
  • GIT_COMMIT_MESSAGE_SUBJECT_SANITIZED expose the-first-line-of-the-commit-message-in-sanitized-way
  • GIT_COMMIT_MESSAGE_BODY expose The body of the commit message

Exposed environment variables

- name: Expose git commit data
  uses: rlespinasse/git-commit-data-action@v1

- name: Print git commit data
  run: |
    echo "Get commit info"
    echo " - ${{ env.GIT_COMMIT_SHA }}"
    echo " - ${{ env.GIT_COMMIT_SHORT_SHA }}"
    echo "Get author info"
    echo " - ${{ env.GIT_COMMIT_AUTHOR }}"
    echo " - ${{ env.GIT_COMMIT_AUTHOR_NAME }}"
    echo " - ${{ env.GIT_COMMIT_AUTHOR_EMAIL }}"
    echo "Get committer info"
    echo " - ${{ env.GIT_COMMIT_COMMITTER }}"
    echo " - ${{ env.GIT_COMMIT_COMMITTER_NAME }}"
    echo " - ${{ env.GIT_COMMIT_COMMITTER_EMAIL }}"
    echo "Get message info"
    echo " - ${{ env.GIT_COMMIT_MESSAGE_SUBJECT }}"
    echo " - ${{ env.GIT_COMMIT_MESSAGE_SUBJECT_SANITIZED }}"
    echo " - ${{ env.GIT_COMMIT_MESSAGE_BODY }}"

Need other commit data

Feel free to contribute. Check out the developer guide

About

Action to expose git commit info

Topics

commitgitgithub-actionshacktoberfest

Resources

Readme
MIT license

Code of conduct

Code of conduct

Contributing

Contributing

Security policy

Security policy
Activity

Stars

41 stars

Watchers

1 watching

Forks

6 forks
Report repository

Releases

Sponsor this project

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.