GH Actions: Update set-output to use the new environment files

The old approach is deprecated.
This commit is contained in:
Geod24 2022-10-14 16:17:43 +02:00 committed by Mathias LANG
parent 5f63f28934
commit dbf86dffbb
2 changed files with 3 additions and 3 deletions

View file

@ -50,7 +50,7 @@ jobs:
run: | run: |
set -euox pipefail set -euox pipefail
ls -aul ~ ~/artifacts ls -aul ~ ~/artifacts
echo "::set-output name=artifacts_directory::$HOME/artifacts" echo "artifacts_directory=$HOME/artifacts" >> $GITHUB_OUTPUT
################################################################# #################################################################
# Create the new release using the downloaded artifacts # Create the new release using the downloaded artifacts

View file

@ -152,12 +152,12 @@ jobs:
run: | run: |
# For pull requests, base_ref will not be empty # For pull requests, base_ref will not be empty
if [ ! -z ${{ github.base_ref }} ]; then if [ ! -z ${{ github.base_ref }} ]; then
echo "::set-output name=branch::${{ github.base_ref }}" echo "branch=${{ github.base_ref }}" >> $GITHUB_OUTPUT
# Otherwise, use whatever ref we have: # Otherwise, use whatever ref we have:
# For branches this in the format 'refs/heads/<branch_name>', # For branches this in the format 'refs/heads/<branch_name>',
# and for tags it is refs/tags/<tag_name>. # and for tags it is refs/tags/<tag_name>.
else else
echo "::set-output name=branch::${{ github.ref }}" echo "branch=${{ github.ref }}" >> $GITHUB_OUTPUT
fi fi
######################################### #########################################