Skip to content

ci: Fix adding size info to release #7221

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 20, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions .github/workflows/release-size-info.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,17 @@ jobs:

steps:
# https://github.com/actions-ecosystem/action-regex-match
- uses: actions-ecosystem/action-regex-match@v2
- name: Extract version from ref
uses: actions-ecosystem/action-regex-match@v2
id: head_version
with:
# Parse version from head ref, which is refs/tags/<tag_name>
text: ${{ github.head_ref }}
text: ${{ env.GITHUB_REF }}
regex: '^refs\/tags\/([\d.]+)$'

- name: Get version
id: get_version
run: echo "version=${{ github.event.inputs.version || steps.head_version.outputs.match }}" >> $GITHUB_OUTPUT
run: echo "version=${{ github.event.inputs.version || steps.head_version.outputs.group1 }}" >> $GITHUB_OUTPUT

- name: Update Github Release
if: steps.get_version.outputs.version != ''
Expand Down