Skip to content

Commit 5d0d3ae

Browse files
committed
fix: release parsing issue
1 parent e8933b5 commit 5d0d3ae

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

.github/workflows/release.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ jobs:
2323
id: release
2424
shell: bash
2525
run: |
26-
RELEASE_VERSION=${GITHUB_REF:11}
26+
# NOTE: Remove `refs/tags/v1.0.0` -> v1.0.0
27+
RELEASE_VERSION=${GITHUB_REF:10}
2728
2829
IS_PRERELEASE=false
2930
if [[ "$RELEASE_VERSION" == *dev* ]]; then
@@ -53,6 +54,6 @@ jobs:
5354
if: github.ref_type == 'tag'
5455
with:
5556
token: ${{ secrets.GITHUB_TOKEN }}
56-
name: "v${{ steps.release.outputs.release_version }}"
57+
name: "${{ steps.release.outputs.release_version }}"
5758
prerelease: ${{ steps.release.outputs.is_prerelease }}
5859
body: ${{ steps.git-cliff.outputs.content }}

0 commit comments

Comments
 (0)