CI: migrate away from deprecated "set-output" syntax
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>
Ævar Arnfjörð Bjarmason committed
Dec 7, 2022 at 02:49 UTC
f115c96e7a837b324283dee113d6ad8798954827
2 files changed
+3
-3
.github/workflows/l10n.yml
+2
-2
@@ -23,8 +23,8 @@ jobs:
23
base=${{ github.event.before }}
24
head=${{ github.event.after }}
25
fi
26
- echo "::set-output name=base::$base"
27
- echo "::set-output name=head::$head"
26
+ echo base=$base >>$GITHUB_OUTPUT
27
+ echo head=$head >>$GITHUB_OUTPUT
28
- name: Run partial clone
29
run: |
30
git -c init.defaultBranch=master init --bare .
.github/workflows/main.yml
+1
-1
@@ -34,7 +34,7 @@ jobs:
34
then
35
enabled=no
36
fi
37
- echo "::set-output name=enabled::$enabled"
37
+ echo "enabled=$enabled" >>$GITHUB_OUTPUT
38
- name: skip if the commit or tree was already tested
39
id: skip-if-redundant
40
uses: actions/github-script@v3