This action expose git commit data.
- 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 expose
Commit Message
- 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 }}"