File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -145,26 +145,23 @@ jobs:
145145 id : extract_notes
146146 run : |
147147 tag="## ${{ matrix.release_name }}"
148- body=$( awk -v tag="$tag" '
148+ awk -v tag="$tag" '
149149 $0 == tag {found=1; next}
150150 /^## / && found {exit}
151151 found {print}
152- ' CHANGELOG.md)
152+ ' CHANGELOG.md > extracted-changelog.md
153153
154- # Correctly export multiline body to environment
155- {
156- echo "RELEASE_BODY<<EOF"
157- echo "${body:-No changelog available.}"
158- echo "EOF"
159- } >> $GITHUB_ENV
154+ if [ ! -s extracted-changelog.md ]; then
155+ echo "No changelog available." > extracted-changelog.md
156+ fi
160157
161158 - name : Create GitHub Release
162159 id : create_release
163160164161 with :
165162 tag_name : ${{ env.VERSION_TAG }}
166163 release_name : ${{ env.VERSION_TAG }}
167- body : ${{ env.RELEASE_BODY }}
164+ body_path : extracted-changelog.md
168165 draft : false
169166 prerelease : false
170167 env :
You can’t perform that action at this time.
0 commit comments