mirror of
https://github.com/fluxcd/flux2.git
synced 2026-02-08 00:37:27 +00:00
build: ensure newlines work with $GITHUB_OUTPUT
Signed-off-by: Hidde Beydals <hello@hidde.co>
This commit is contained in:
parent
e4df6c9d14
commit
2e1e4106fd
1 changed files with 6 additions and 1 deletions
7
.github/workflows/update.yaml
vendored
7
.github/workflows/update.yaml
vendored
|
|
@ -70,7 +70,12 @@ jobs:
|
|||
git diff
|
||||
|
||||
# export PR_BODY for PR and commit
|
||||
echo "pr_body=$PR_BODY" >> $GITHUB_OUTPUT
|
||||
# NB: this may look strange but it is the way it should be done to
|
||||
# maintain our precious newlines
|
||||
# Ref: https://github.com/github/docs/issues/21529
|
||||
echo 'pr_body<<EOF' >> $GITHUB_OUTPUT
|
||||
echo "${PR_BODY}" >> $GITHUB_OUTPUT
|
||||
echo 'EOF' >> $GITHUB_OUTPUT
|
||||
}
|
||||
|
||||
- name: Create Pull Request
|
||||
|
|
|
|||
Loading…
Reference in a new issue