File tree 1 file changed +4
-3
lines changed 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -18,16 +18,17 @@ jobs:
18
18
19
19
steps :
20
20
# 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
22
23
id : head_version
23
24
with :
24
25
# Parse version from head ref, which is refs/tags/<tag_name>
25
- text : ${{ github.head_ref }}
26
+ text : ${{ env.GITHUB_REF }}
26
27
regex : ' ^refs\/tags\/([\d.]+)$'
27
28
28
29
- name : Get version
29
30
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
31
32
32
33
- name : Update Github Release
33
34
if : steps.get_version.outputs.version != ''
You can’t perform that action at this time.
0 commit comments