Skip to content

Commit 098488a

Browse files
authored
chore: change semantic relase
1 parent 79576d0 commit 098488a

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

.github/workflows/main.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,18 +20,20 @@ jobs:
2020
with:
2121
persist-credentials: false # This is important if you have branch protection rules!
2222
- name: Semantic Release
23+
id: semantic
2324
uses: cycjimmy/semantic-release-action@v4
2425
with:
2526
branch: 'master'
2627
env:
2728
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2829
- name: Get Semantic Release Version
2930
id: get-version
30-
run: echo "::set-output name=version::$(grep -oP '\[\d+\.\d+\.\d+\]' CHANGELOG.md | tr -d '[]')"
31+
run: echo "::set-output name=version::$(echo ${{ steps.Semantic.new_release_version }})"
3132

3233
- name: show version
3334
run: |
34-
echo "Semantic Release Version: ${{ steps.get-version.outputs.version }}"
35+
echo "Semantic Release Version: ${{ steps.Semantic.new_release_version }}"
36+
3537
3638
- name: setup qemu for multi-arch build
3739
uses: docker/setup-qemu-action@v2
@@ -58,4 +60,4 @@ jobs:
5860
repo: ${{ github.repository }}
5961
branch: ${{ github.head_ref || github.ref_name }}
6062
env:
61-
GITHUB_TOKEN: ${{secrets.ACCESS_TOKEN}}
63+
GITHUB_TOKEN: ${{secrets.ACCESS_TOKEN}}

0 commit comments

Comments
 (0)