Replace deprecated set-output with GITHUB_OUTPUT

This commit is contained in:
sebthom
2022-12-11 15:36:29 +01:00
parent 3a2eea5323
commit 664c0dfc7f

View File

@@ -71,16 +71,16 @@ 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 "::set-output name=updates::" echo "updates=" >> $GITHUB_OUTPUT
else else
updates=$(echo "$updates" | grep Update) updates=$(echo "$updates" | grep Update)
# see https://trstringer.com/github-actions-multiline-strings/ # see https://trstringer.com/github-actions-multiline-strings/
updates="${updates//'%'/'%25'}" updates="${updates//'%'/'%25'}"
updates="${updates//$'\n'/'%0A'}" updates="${updates//$'\n'/'%0A'}"
updates="${updates//$'\r'/'%0D'}" updates="${updates//$'\r'/'%0D'}"
echo "::set-output name=updates::${updates}" echo "updates=${updates}" >> $GITHUB_OUTPUT
fi fi
- name: Create PR - name: Create PR