File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change 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 }}
You can’t perform that action at this time.
0 commit comments