File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -55,18 +55,12 @@ jobs:
5555 contents : write
5656 steps :
5757 - uses : actions/checkout@v4
58- - name : Extract changelog for ${{ github.ref_name }}
59- id : changelog
60- run : |
61- VERSION="${GITHUB_REF_NAME}"
62- NOTES=$(awk "/^## \[$VERSION\]/{found=1; next} found && /^## \[/{exit} found{print}" CHANGELOG.md)
63- echo "notes<<EOF" >> "$GITHUB_OUTPUT"
64- echo "$NOTES" >> "$GITHUB_OUTPUT"
65- echo "EOF" >> "$GITHUB_OUTPUT"
6658 - name : Create GitHub Release
6759 env :
6860 GH_TOKEN : ${{ github.token }}
6961 run : |
62+ awk "/^## \[${GITHUB_REF_NAME}\]/{found=1; next} found && /^## \[/{exit} found{print}" \
63+ CHANGELOG.md > /tmp/release-notes.md
7064 gh release create "$GITHUB_REF_NAME" \
7165 --title "$GITHUB_REF_NAME" \
72- --notes "${{ steps.changelog.outputs. notes }}"
66+ --notes-file /tmp/release- notes.md
You can’t perform that action at this time.
0 commit comments