Skip to content

jcputney/git-commit-data-action

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

Repository files navigation

Git Commit Data action

Actions Status Public workflows that use this action. Licence

This action expose git commit data.

Exposed environment variables

- name: Expose git commit data
  uses: jcputney/git-commit-data-action@v2

- name: Print git commit data
  run: |
    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 commit info"
    echo " - ${{ env.GIT_COMMIT_MESSAGE }}"

About

Action to expose git commit info

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Shell 73.9%
  • JavaScript 26.1%