Fix set-output deprecation (#348)

This change removes the use of the deprecated `set-output` command in 
the Github Actions workflows.

See https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands
This commit is contained in:
Timo Reichl 2022-12-14 01:10:34 +01:00 committed by GitHub
parent 0a29a29503
commit 177f1a406c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 8 deletions

View file

@ -67,13 +67,12 @@ jobs:
- name: Format Release Name
id: format_release
run: |
release=$(scripts/version.sh)
echo "::set-output name=release::$release"
echo "release=$(scripts/version.sh)" >> $GITHUB_OUTPUT
changelog=$(dpkg-parsechangelog -c 1 -l debian/changelog)
changelog="${changelog//'%'/'%25'}"
changelog="${changelog//$'\n'/'%0A'}"
changelog="${changelog//$'\r'/'%0D'}"
echo "::set-output name=changelog::$changelog"
echo "changelog=$changelog" >> $GITHUB_OUTPUT
- name: Create Release
uses: ncipollo/release-action@v1
with:

View file

@ -33,14 +33,14 @@ jobs:
VERSION_OPT=${VERSION:+-v ${VERSION}}
RELEASE_OPT=${RELEASE:+-r ${RELEASE}}
./scripts/update.sh -t ${{ github.event.inputs.tag }} $VERSION_OPT $RELEASE_OPT
echo "::set-output name=version::$(scripts/version.sh -L)"
echo "::set-output name=full::$(scripts/version.sh)"
echo "version=$(scripts/version.sh -L)" >> $GITHUB_OUTPUT
echo "full=$(scripts/version.sh)" >> $GITHUB_OUTPUT
changelog=$(dpkg-parsechangelog -c 1 -l debian/changelog)
changelog="${changelog//'%'/'%25'}"
changelog="${changelog//$'\n'/'%0A'}"
changelog="${changelog//$'\r'/'%0D'}"
echo "::set-output name=changelog::$changelog"
echo "::set-output name=branch::${GITHUB_REF##*/}"
echo "changelog=$changelog" >> $GITHUB_OUTPUT
echo "branch=${GITHUB_REF##*/}" >> $GITHUB_OUTPUT
- name: Create Pull Request
uses: peter-evans/create-pull-request@v4
with:

View file

@ -35,7 +35,7 @@ jobs:
exit 0
fi
echo "No staging update found: triggering update"
echo "::set-output name=version::$NEW"
echo "version=$NEW" >> $GITHUB_OUTPUT
- name: Trigger Update
if: ${{ steps.check.outputs.version }}
uses: benc-uk/workflow-dispatch@v1