Skip to content

Commit c46c56c

Browse files
authored
ci: Fix adding size info to release (#7221)
1 parent b2e866a commit c46c56c

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/release-size-info.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff 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 != ''

0 commit comments

Comments
 (0)