]> git.ipfire.org Git - thirdparty/git.git/commitdiff
CI: migrate away from deprecated "set-output" syntax
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>
Wed, 7 Dec 2022 01:49:18 +0000 (02:49 +0100)
committerJunio C Hamano <gitster@pobox.com>
Wed, 7 Dec 2022 23:47:22 +0000 (08:47 +0900)
As noted in [1] and the warnings the CI itself is spewing echoing
outputs to stdout is deprecated, and they should be written to
"$GITHUB_OUTPUT" instead.

1. https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/

Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
.github/workflows/l10n.yml
.github/workflows/main.yml

index 27f72f0ff34482912ee894570ff277e43d5d3ddf..f7ea0f00a449cfafd5dc006e59267e464f753387 100644 (file)
@@ -23,8 +23,8 @@ jobs:
             base=${{ github.event.before }}
             head=${{ github.event.after }}
           fi
-          echo "::set-output name=base::$base"
-          echo "::set-output name=head::$head"
+          echo base=$base >>$GITHUB_OUTPUT
+          echo head=$head >>$GITHUB_OUTPUT
       - name: Run partial clone
         run: |
           git -c init.defaultBranch=master init --bare .
index 831f4df56c51dc96b17465a5120d28bf11a63351..912fe14c6e4263e63a5b41f1d763d799d4a4ff85 100644 (file)
@@ -34,7 +34,7 @@ jobs:
           then
             enabled=no
           fi
-          echo "::set-output name=enabled::$enabled"
+          echo "enabled=$enabled" >>$GITHUB_OUTPUT
       - name: skip if the commit or tree was already tested
         id: skip-if-redundant
         uses: actions/github-script@v3