Skip to content

Commit 5fb3b61

Browse files
[3.11] gh-98456: Replace deprecated set-output with up-to-date vers… (gh-98565)
[3.11] gh-98456: Replace deprecated `set-output` with up-to-date version (gh-98457). (cherry picked from commit 1db2a0c) Co-authored-by: Noam Cohen <[email protected]> Co-authored-by: Noam Cohen <[email protected]>
1 parent b3cafb6 commit 5fb3b61

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ jobs:
4242
id: check
4343
run: |
4444
if [ -z "$GITHUB_BASE_REF" ]; then
45-
echo '::set-output name=run_tests::true'
46-
echo '::set-output name=run_ssl_tests::true'
45+
echo "run_tests=true" >> $GITHUB_OUTPUT
46+
echo "run_ssl_tests=true" >> $GITHUB_OUTPUT
4747
else
4848
git fetch origin $GITHUB_BASE_REF --depth=1
4949
# git diff "origin/$GITHUB_BASE_REF..." (3 dots) may be more
@@ -59,8 +59,8 @@ jobs:
5959
# into the PR branch anyway.
6060
#
6161
# https://github.com/python/core-workflow/issues/373
62-
git diff --name-only origin/$GITHUB_BASE_REF.. | grep -qvE '(\.rst$|^Doc|^Misc)' && echo '::set-output name=run_tests::true' || true
63-
git diff --name-only origin/$GITHUB_BASE_REF.. | grep -qE '(ssl|hashlib|hmac|^.github)' && echo '::set-output name=run_ssl_tests::true' || true
62+
git diff --name-only origin/$GITHUB_BASE_REF.. | grep -qvE '(\.rst$|^Doc|^Misc)' && echo "run_tests=true" >> $GITHUB_OUTPUT || true
63+
git diff --name-only origin/$GITHUB_BASE_REF.. | grep -qE '(ssl|hashlib|hmac|^.github)' && echo "run_ssl_tests=true" >> $GITHUB_OUTPUT || true
6464
fi
6565
6666
check_abi:

0 commit comments

Comments
 (0)