mirror of
https://github.com/Second-Hand-Friends/kleinanzeigen-bot.git
synced 2026-03-12 10:31:50 +01:00
fix multiline GITHUB_OUTPUT
This commit is contained in:
15
.github/workflows/update-python-deps.yml
vendored
15
.github/workflows/update-python-deps.yml
vendored
@@ -71,16 +71,13 @@ jobs:
|
|||||||
updates=$(pdm update 2>&1 |tee /dev/fd/5)
|
updates=$(pdm update 2>&1 |tee /dev/fd/5)
|
||||||
|
|
||||||
if git diff --exit-code pdm.lock; then
|
if git diff --exit-code pdm.lock; then
|
||||||
echo "updates=" >> $GITHUB_OUTPUT
|
echo "updates=" >> "$GITHUB_OUTPUT"
|
||||||
else
|
else
|
||||||
updates=$(echo "$updates" | grep Update)
|
# https://github.com/orgs/community/discussions/26288#discussioncomment-3876281
|
||||||
|
delimiter="$(openssl rand -hex 8)"
|
||||||
# see https://trstringer.com/github-actions-multiline-strings/
|
echo "updates<<${delimiter}" >> "${GITHUB_OUTPUT}"
|
||||||
updates="${updates//'%'/'%25'}"
|
echo "$(echo "$updates" | grep Update | grep -v kleinanzeigen-bot)" >> "${GITHUB_OUTPUT}"
|
||||||
updates="${updates//$'\n'/'%0A'}"
|
echo "${delimiter}" >> "${GITHUB_OUTPUT}"
|
||||||
updates="${updates//$'\r'/'%0D'}"
|
|
||||||
|
|
||||||
echo "updates=${updates}" >> $GITHUB_OUTPUT
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
- name: Create PR
|
- name: Create PR
|
||||||
|
|||||||
Reference in New Issue
Block a user