File tree Expand file tree Collapse file tree 1 file changed +2
-14
lines changed
Expand file tree Collapse file tree 1 file changed +2
-14
lines changed Original file line number Diff line number Diff line change 6060 name : Generate changelog
6161 runs-on : ubuntu-latest
6262 outputs :
63- release_body : ${{ steps.release .outputs.RELEASE_BODY }}
63+ release_body : ${{ steps.git-cliff .outputs.content }}
6464 steps :
6565 - name : Checkout
6666 uses : actions/checkout@v2
@@ -76,26 +76,14 @@ jobs:
7676 env :
7777 OUTPUT : CHANGES.md
7878
79- - name : Set the release body
80- id : release
81- shell : bash
82- run : |
83- r=$(cat ${{ steps.git-cliff.outputs.changelog }})
84- r="${r//'%'/'%25'}" # Multiline escape sequences for %
85- r="${r//$'\n'/'%0A'}" # Multiline escape sequences for '\n'
86- r="${r//$'\r'/'%0D'}" # Multiline escape sequences for '\r'
87- echo 'RELEASE_BODY<<EOF' >> $GITHUB_ENV
88- echo "$r" >> $GITHUB_ENV
89- echo 'EOF' >> $GITHUB_ENV
90-
9179 # use release body in the same job
9280 - name : Upload the binary releases
9381 uses : svenstaro/upload-release-action@v2
9482 with :
9583 file : binary_release.zip
9684 repo_token : ${{ secrets.GITHUB_TOKEN }}
9785 tag : ${{ github.ref }}
98- body : ${{ steps.release .outputs.RELEASE_BODY }}
86+ body : ${{ steps.git-cliff .outputs.content }}
9987
10088 # use release body in another job
10189 upload :
You can’t perform that action at this time.
0 commit comments