Skip to content

Commit 43ea8be

Browse files
authored
ci: fix auto release (#49)
1 parent 267e29d commit 43ea8be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/release.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
uses: actions/checkout@v4
2424
- name: Get the release version from the tag
2525
if: env.VERSION == ''
26-
run: echo "VERSION=$(echo ${{ github.ref_name }} | cut -f1 -d'-')" >> $GITHUB_ENV
26+
run: echo "VERSION=$(echo ${{ github.ref_name }} | sed s/v\(.*\)-.*/\1/)" >> $GITHUB_ENV
2727
- name: Show the version
2828
run: |
2929
echo "version is: $VERSION"

0 commit comments

Comments
 (0)