File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 7272 echo "Release $VERSION ${{ inputs.bump }} by ${{ github.actor }}" >> "$GITHUB_RUN_NAME"
7373
7474 - name : Generate changelog
75- run : npx git-cliff --tag ${{ steps.bump.outputs.version }} -o CHANGELOG.md
75+ id : changelog
76+ run : |
77+ npx git-cliff --tag ${{ steps.bump.outputs.version }} -o CHANGELOG.md
78+ echo "notes<<EOF" >> "$GITHUB_OUTPUT"
79+ npx git-cliff --latest --strip all >> "$GITHUB_OUTPUT"
80+ echo "EOF" >> "$GITHUB_OUTPUT"
7681
7782 - name : Commit, tag, push
7883 run : |
8388
8489 - name : Create GitHub Release
8590 run : |
86- NOTES=$(npx git-cliff --tag ${{ steps.bump.outputs.version }} --current --strip all)
8791 gh release create ${{ steps.bump.outputs.version }} \
8892 --title "${{ steps.bump.outputs.version }}" \
89- --notes "$NOTES" \
93+ --notes "${{ steps.changelog.outputs.notes }}"
9094 ${{ inputs.prerelease == 'true' && '--prerelease' || '' }}
9195 env :
9296 GH_TOKEN : ${{ secrets.RELEASE_PAT }}
You can’t perform that action at this time.
0 commit comments