File tree Expand file tree Collapse file tree 1 file changed +1
-10
lines changed Expand file tree Collapse file tree 1 file changed +1
-10
lines changed Original file line number Diff line number Diff line change 17
17
name : ' Add size-limit info to release'
18
18
19
19
steps :
20
- # https://github.com/actions-ecosystem/action-regex-match
21
- - name : Extract version from ref
22
- uses : actions-ecosystem/action-regex-match@v2
23
- id : head_version
24
- with :
25
- # Parse version from head ref, which is refs/tags/<tag_name>
26
- text : ${{ env.GITHUB_REF }}
27
- regex : ' ^refs\/tags\/([\d.]+)$'
28
-
29
20
- name : Get version
30
21
id : get_version
31
- run : echo "version=${{ github.event.inputs.version || steps.head_version.outputs.group1 }}" >> $GITHUB_OUTPUT
22
+ run : echo "version=${{ github.event.inputs.version || github.event.release.tag_name }}" >> $GITHUB_OUTPUT
32
23
33
24
- name : Update Github Release
34
25
if : steps.get_version.outputs.version != ''
You can’t perform that action at this time.
0 commit comments