Skip to content

Commit

Permalink
ci: Get release tag name from event (#7591)
Browse files Browse the repository at this point in the history
  • Loading branch information
mydea authored Mar 23, 2023
1 parent 1418582 commit a818cc7
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions .github/workflows/release-size-info.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,9 @@ jobs:
name: 'Add size-limit info to release'

steps:
# /~https://github.com/actions-ecosystem/action-regex-match
- 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: ${{ env.GITHUB_REF }}
regex: '^refs\/tags\/([\d.]+)$'

- name: Get version
id: get_version
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

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

0 comments on commit a818cc7

Please sign in to comment.