]> git.ipfire.org Git - thirdparty/git.git/commitdiff
ci: avoid `set-env` construct in print-test-failures.sh
authorJunio C Hamano <gitster@pobox.com>
Tue, 17 Nov 2020 20:10:35 +0000 (12:10 -0800)
committerJunio C Hamano <gitster@pobox.com>
Tue, 17 Nov 2020 20:12:30 +0000 (12:12 -0800)
Imitating cac42e47 (ci: avoid using the deprecated `set-env`
construct, 2020-11-07), avoid deprecated ::set-env and use the
recommended alternative instead in print-test-failures.sh

Helped-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
ci/print-test-failures.sh

index 92a983a265c246da0865fbd9f82ae5c15bb99322..c70d6cdbf243db05f9e5718070895abd837d617a 100755 (executable)
@@ -48,7 +48,7 @@ do
                        ;;
                github-actions)
                        mkdir -p failed-test-artifacts
-                       echo "::set-env name=FAILED_TEST_ARTIFACTS::t/failed-test-artifacts"
+                       echo "FAILED_TEST_ARTIFACTS=t/failed-test-artifacts" >>$GITHUB_ENV
                        cp "${TEST_EXIT%.exit}.out" failed-test-artifacts/
                        tar czf failed-test-artifacts/"$test_name".trash.tar.gz "$trash_dir"
                        continue