Skip to content

Commit 266e79e

Browse files
authored
ci: replace GITHUB_OUTPUT with GITHUB_ENV for multiline variables (#18857)
1 parent a44c841 commit 266e79e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/create-release.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,15 @@ jobs:
3232
# The sed removes carriage returns so that the body is easier to parse later, and
3333
# escapes backticks so that they are not executed as commands.
3434
PR_BODY=$(printf '%s' "$PR" | jq '.[0].body' | sed 's/\\r//g' | sed 's/`/\\`/g')
35-
echo pr_body=${PR_BODY} >> $GITHUB_OUTPUT
35+
echo "pr_body<<EOF" >> $GITHUB_ENV
36+
echo "$PR_BODY" >> $GITHUB_ENV
37+
echo "EOF" >> $GITHUB_ENV
3638
- name: Extract Changelog
3739
id: extract_changelog
3840
shell: bash
3941
run: |-
4042
set -x
41-
PR_BODY=${{ steps.fetch_pr_body.outputs.pr_body}}
43+
PR_BODY=${{ env.pr_body}}
4244
if [[ $PR_BODY = "null" ]]; then
4345
echo "No PR body exists for this commit, so a release cannot be generated."
4446
exit 1

0 commit comments

Comments
 (0)