Skip to content

Commit 71bdcce

Browse files
authored
Stop using the deprecated set-output command in nightly_matrix.php (#10302)
see https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
1 parent 013e0f9 commit 71bdcce

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/nightly_matrix.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,5 +88,7 @@ function get_matrix_include(array $branches) {
8888
$branches = get_branches();
8989
$matrix_include = get_matrix_include($branches);
9090

91-
echo '::set-output name=branches::' . json_encode($branches, JSON_UNESCAPED_SLASHES) . "\n";
92-
echo '::set-output name=matrix-include::' . json_encode($matrix_include, JSON_UNESCAPED_SLASHES) . "\n";
91+
$f = fopen(getenv('GITHUB_OUTPUT'), 'a');
92+
fwrite($f, 'branches=' . json_encode($branches, JSON_UNESCAPED_SLASHES) . "\n");
93+
fwrite($f, 'matrix-include=' . json_encode($matrix_include, JSON_UNESCAPED_SLASHES) . "\n");
94+
fclose($f);

0 commit comments

Comments
 (0)