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/
This commit is contained in:
Tim Düsterhus 2023-01-12 20:07:31 +01:00 committed by GitHub
parent 013e0f98ac
commit 71bdcce9f8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -88,5 +88,7 @@ if ($discard_cache) {
$branches = get_branches();
$matrix_include = get_matrix_include($branches);
echo '::set-output name=branches::' . json_encode($branches, JSON_UNESCAPED_SLASHES) . "\n";
echo '::set-output name=matrix-include::' . json_encode($matrix_include, JSON_UNESCAPED_SLASHES) . "\n";
$f = fopen(getenv('GITHUB_OUTPUT'), 'a');
fwrite($f, 'branches=' . json_encode($branches, JSON_UNESCAPED_SLASHES) . "\n");
fwrite($f, 'matrix-include=' . json_encode($matrix_include, JSON_UNESCAPED_SLASHES) . "\n");
fclose($f);