Skip to content

Commit de3dd6b

Browse files
committed
fix release tags not being annotated
1 parent c5962ab commit de3dd6b

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/module_release.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,14 @@ jobs:
8787
- name: "Create release for v${{ steps.get_version.outputs.version }}"
8888
if: ${{ inputs.release == true || inputs.release == 'true' }}
8989
run: |
90+
if [[ -z "${{ inputs.tag }}" ]] ; then
91+
# create an annotated tag -- gh release create DOES NOT do this for us!
92+
# TODO move this to an automatic action when a release_prep PR is merged
93+
git config --local user.email "${{ github.repository_owner }}@users.noreply.github.com"
94+
git config --local user.name "GitHub Actions"
95+
git tag -a -m "v${{ steps.get_version.outputs.version }}" "v${{ steps.get_version.outputs.version }}"
96+
git push origin tag "v${{ steps.get_version.outputs.version }}"
97+
fi
9098
gh release create v${{ steps.get_version.outputs.version }} --title v${{ steps.get_version.outputs.version }} -F OUTPUT.md
9199
env:
92100
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)