File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -20,20 +20,18 @@ jobs:
20
20
with :
21
21
persist-credentials : false # This is important if you have branch protection rules!
22
22
- name : Semantic Release
23
- id : semantic
24
23
uses : cycjimmy/semantic-release-action@v4
25
24
with :
26
25
branch : ' master'
27
26
env :
28
27
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
29
28
- name : Get Semantic Release Version
30
29
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 '[]' )"
32
31
33
32
- name : show version
34
33
run : |
35
- echo "Semantic Release Version: ${{ steps.Semantic.new_release_version }}"
36
-
34
+ echo "Semantic Release Version: ${{ steps.get-version.outputs.version }}"
37
35
38
36
- name : setup qemu for multi-arch build
39
37
uses : docker/setup-qemu-action@v2
You can’t perform that action at this time.
0 commit comments