Skip to content

Commit 4e47efa

Browse files
committed
Refactor automated release process fix round 6
1 parent db5c507 commit 4e47efa

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
- name: Extract version from CHANGELOG.md
2020
id: changelog
2121
run: |
22-
version=$(grep -m 1 -oP '^##\s*\[v[0-9]+\.[0-9]+\.[0-9]+' CHANGELOG.md)
22+
version=$(grep -m 1 -oP '^##\s*\[\Kv[0-9]+\.[0-9]+\.[0-9]+' CHANGELOG.md)
2323
echo "version=$version" >> $GITHUB_OUTPUT
2424
2525
# - name: Create and push git tag
@@ -37,8 +37,7 @@ jobs:
3737
- name: "Generate Release Changelog"
3838
run: |
3939
gh extension install chelnak/gh-changelog
40-
gh changelog new --latest
41-
gh changelog new --next-version v${{ steps.changelog.outputs.version }} --latest
40+
gh changelog new --next-version ${{ steps.changelog.outputs.version }} --latest
4241
env:
4342
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4443

@@ -48,8 +47,8 @@ jobs:
4847
env:
4948
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5049
with:
51-
tag_name: v${{ steps.changelog.outputs.version }}
52-
release_name: Release v${{ steps.changelog.outputs.version }}
50+
tag_name: ${{ steps.changelog.outputs.version }}
51+
release_name: Release ${{ steps.changelog.outputs.version }}
5352
draft: false
5453
prerelease: false
5554
body_path: CHANGELOG.md

0 commit comments

Comments
 (0)