We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1418582 commit a818cc7Copy full SHA for a818cc7
1 file changed
.github/workflows/release-size-info.yml
@@ -17,18 +17,9 @@ jobs:
17
name: 'Add size-limit info to release'
18
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
- name: Get version
30
id: get_version
31
- run: echo "version=${{ github.event.inputs.version || steps.head_version.outputs.group1 }}" >> $GITHUB_OUTPUT
+ run: echo "version=${{ github.event.inputs.version || github.event.release.tag_name }}" >> $GITHUB_OUTPUT
32
33
- name: Update Github Release
34
if: steps.get_version.outputs.version != ''
0 commit comments