Skip to content

Commit e7720b4

Browse files
authored
chore: Update main.yml
1 parent 5af372f commit e7720b4

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

.github/workflows/main.yml

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

3332
- name: show version
3433
run: |
35-
echo "Semantic Release Version: ${{ steps.Semantic.new_release_version }}"
36-
34+
echo "Semantic Release Version: ${{ steps.get-version.outputs.version }}"
3735
3836
- name: setup qemu for multi-arch build
3937
uses: docker/setup-qemu-action@v2

0 commit comments

Comments
 (0)