File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change 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
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
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
You can’t perform that action at this time.
0 commit comments