Skip to content

Commit f115c96

Browse files
avargitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent e7e5c6f commit f115c96

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/workflows/l10n.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ jobs:
2323
base=${{ github.event.before }}
2424
head=${{ github.event.after }}
2525
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
2828
- name: Run partial clone
2929
run: |
3030
git -c init.defaultBranch=master init --bare .

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
then
3535
enabled=no
3636
fi
37-
echo "::set-output name=enabled::$enabled"
37+
echo "enabled=$enabled" >>$GITHUB_OUTPUT
3838
- name: skip if the commit or tree was already tested
3939
id: skip-if-redundant
4040
uses: actions/github-script@v3

0 commit comments

Comments
 (0)