mirror of
https://github.com/dlang/dmd.git
synced 2025-05-05 17:41:24 +03:00
GH Actions: Update set-output to use the new environment files
The old approach is deprecated.
This commit is contained in:
parent
5f63f28934
commit
dbf86dffbb
2 changed files with 3 additions and 3 deletions
2
.github/workflows/nightlies.yml
vendored
2
.github/workflows/nightlies.yml
vendored
|
@ -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
|
||||||
|
|
4
.github/workflows/runnable_cxx.yml
vendored
4
.github/workflows/runnable_cxx.yml
vendored
|
@ -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
|
||||||
|
|
||||||
#########################################
|
#########################################
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue