Skip to content

Git Commit Data w/ Message

Actions
Action to expose git commit data
1.0.2
Latest
Star (2)

Git Commit Data action

Actions Status Public workflows that use this action. Licence

This action expose git commit data.

  • GIT_COMMIT_AUTHOR expose Author Name <author@email.tld>
  • GIT_COMMIT_AUTHOR_NAME expose Author Name
  • GIT_COMMIT_AUTHOR_EMAIL expose author@email.tld
  • GIT_COMMIT_COMMITTER expose Committer Name <committer@email.tld>
  • GIT_COMMIT_COMMITTER_NAME expose Committer Name
  • GIT_COMMIT_COMMITTER_EMAIL expose committer@email.tld
  • GIT_COMMIT_MESSAGE expose Commit Message

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 }}"

Git Commit Data w/ 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

Action to expose git commit data
1.0.2
Latest

Git Commit Data w/ 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.