summaryrefslogtreecommitdiffstats
path: root/.github/workflows/build.yml
diff options
context:
space:
mode:
authorNoam Cohen <noam@noam.me>2022-10-23 05:23:40 (GMT)
committerGitHub <noreply@github.com>2022-10-23 05:23:40 (GMT)
commit1db2a0cb20a1de5231a73fc7381056d725e90535 (patch)
tree8e52f968d165ee4dcd447295b8e2515d667c1bd1 /.github/workflows/build.yml
parentf58631be1148ee5436bb71d175d3993e3e6b4e1e (diff)
downloadcpython-1db2a0cb20a1de5231a73fc7381056d725e90535.zip
cpython-1db2a0cb20a1de5231a73fc7381056d725e90535.tar.gz
cpython-1db2a0cb20a1de5231a73fc7381056d725e90535.tar.bz2
gh-98456: Replace deprecated `set-output` with up-to-date version (gh-98457)
Diffstat (limited to '.github/workflows/build.yml')
-rw-r--r--.github/workflows/build.yml4
1 files changed, 2 insertions, 2 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index f782d39..f0544c0 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -41,7 +41,7 @@ jobs:
id: check
run: |
if [ -z "$GITHUB_BASE_REF" ]; then
- echo '::set-output name=run_tests::true'
+ echo "run_tests=true" >> $GITHUB_OUTPUT
else
git fetch origin $GITHUB_BASE_REF --depth=1
# git diff "origin/$GITHUB_BASE_REF..." (3 dots) may be more
@@ -57,7 +57,7 @@ jobs:
# into the PR branch anyway.
#
# https://github.com/python/core-workflow/issues/373
- git diff --name-only origin/$GITHUB_BASE_REF.. | grep -qvE '(\.rst$|^Doc|^Misc)' && echo '::set-output name=run_tests::true' || true
+ git diff --name-only origin/$GITHUB_BASE_REF.. | grep -qvE '(\.rst$|^Doc|^Misc)' && echo "run_tests=true" >> $GITHUB_OUTPUT || true
fi
check_generated_files: