]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-98456: Replace deprecated `set-output` with up-to-date version (gh-98457)
authorNoam Cohen <noam@noam.me>
Sun, 23 Oct 2022 05:23:40 +0000 (08:23 +0300)
committerGitHub <noreply@github.com>
Sun, 23 Oct 2022 05:23:40 +0000 (14:23 +0900)
.github/workflows/build.yml

index f782d394a57b07e308b532360a7c37af4c183f2d..f0544c0962e1239844e868c1f29ae1a8b4618a67 100644 (file)
@@ -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: