File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -18,16 +18,17 @@ jobs:
1818
1919 steps :
2020 # https://github.com/actions-ecosystem/action-regex-match
21- - uses : actions-ecosystem/action-regex-match@v2
21+ - name : Extract version from ref
22+ uses : actions-ecosystem/action-regex-match@v2
2223 id : head_version
2324 with :
2425 # Parse version from head ref, which is refs/tags/<tag_name>
25- text : ${{ github.head_ref }}
26+ text : ${{ env.GITHUB_REF }}
2627 regex : ' ^refs\/tags\/([\d.]+)$'
2728
2829 - name : Get version
2930 id : get_version
30- run : echo "version=${{ github.event.inputs.version || steps.head_version.outputs.match }}" >> $GITHUB_OUTPUT
31+ run : echo "version=${{ github.event.inputs.version || steps.head_version.outputs.group1 }}" >> $GITHUB_OUTPUT
3132
3233 - name : Update Github Release
3334 if : steps.get_version.outputs.version != ''
You can’t perform that action at this time.
0 commit comments