Skip to content

Commit 49a5e93

Browse files
Update make-update-github-releases.yml
Signed-off-by: LUIZ HAMILTON ROBERTO DA SILVA <[email protected]>
1 parent a8f0bee commit 49a5e93

1 file changed

Lines changed: 6 additions & 9 deletions

File tree

.github/workflows/make-update-github-releases.yml

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff 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
163160
uses: actions/[email protected]
164161
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:

0 commit comments

Comments
 (0)