[CI] GitHub Actions deprecated the set-output command

This commit is contained in:
Mat Sutcliffe
2022-10-12 21:01:51 +01:00
parent 952dfc493c
commit 7f4cd3147e
2 changed files with 5 additions and 3 deletions

View File

@@ -33,9 +33,11 @@ while (<<>>)
++$cmds{"::warning file=$result{file}::$result{msg}"};
}
}
my $bool = %cmds ? 'true' : 'false';
print "$_\n" for sort keys %cmds;
print "::set-output name=warnings::$bool\n";
my $bool = %cmds ? 'true' : 'false';
open my $GITHUB_OUTPUT, ">> $ENV{GITHUB_OUTPUT}" or die "open: $!";
print $GITHUB_OUTPUT "warnings=$bool\n";
sub extractWarning
{