Fix GitHub status update for private flakes.
Also, if the parse fails, don't try to update the GitHub status, as this will eventually cause rate-limiting.
This commit is contained in:
parent
85e299d3d7
commit
523d6df5b8
|
@ -93,8 +93,11 @@ sub common {
|
|||
if (defined $eval->flake) {
|
||||
my $fl = $eval->flake;
|
||||
print STDERR "Flake is $fl\n";
|
||||
$eval->flake =~ m!github:([^/]+)/([^/]+)/(.+)$!;
|
||||
$sendStatus->("src", $1, $2, $3);
|
||||
if ($eval->flake =~ m!github:([^/]+)/([^/]+)/([[:xdigit:]]{40})$! or $eval->flake =~ m!git\+ssh://git\@github.com/([^/]+)/([^/]+)\?.*rev=([[:xdigit:]]{40})$!) {
|
||||
$sendStatus->("src", $1, $2, $3);
|
||||
} else {
|
||||
print STDERR "Can't parse flake, skipping GitHub status update\n";
|
||||
}
|
||||
} else {
|
||||
foreach my $input (@inputs) {
|
||||
my $i = $eval->jobsetevalinputs->find({ name => $input, altnr => 0 });
|
||||
|
|
Loading…
Reference in a new issue