Skip to content

Commit

Permalink
Added sha of original commit to tag commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
s-weigand committed Nov 9, 2020
1 parent bf26813 commit 534a0e6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/publish-major-minor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,11 @@ jobs:
minor_version: ${{ steps.get_versions.outputs.minor_version }}
run: |
git tag --annotate '${{ env.major_version }}' \
--message='Major version tag of: ${{ env.original_tag_name }}'
--message='Major version tag of: ${{ env.original_tag_name }}' \
--message="Commit SHA: $(git rev-parse ${{ env.original_tag_name }})"
git tag --annotate '${{ env.minor_version }}' \
--message='Minor version tag of: ${{ env.original_tag_name }}'
--message='Minor version tag of: ${{ env.original_tag_name }}' \
--message="Commit SHA: $(git rev-parse ${{ env.original_tag_name }})"
- name: Push major + minor tags
if: steps.get_versions.outputs.original_tag_name != ''
env:
Expand Down

0 comments on commit 534a0e6

Please sign in to comment.