[CI] Skip the workflow run for a pull request, if the same SHA was already built

This commit is contained in:
Mat Sutcliffe
2020-07-07 19:42:42 +01:00
parent 93998720b2
commit c4f6e516ef
2 changed files with 11 additions and 9 deletions

View File

@@ -31,10 +31,9 @@ while (<<>>)
++$cmds{"::warning file=$result{file}::$result{msg}"};
}
}
my @cmds = sort keys %cmds;
my $count = scalar @cmds;
print "$_\n" for @cmds;
print "::set-output name=warnings::$count\n";
my $bool = %cmds ? 'true' : 'false';
print "$_\n" for sort keys %cmds;
print "::set-output name=warnings::$bool\n";
sub extractWarning
{