forked from lix-project/hydra
Merge pull request #924 from hackworthltd/fix-flake-github-status
Fix GitHub status update for private flakes.
This commit is contained in:
commit
886e6f85e4
|
@ -93,8 +93,11 @@ sub common {
|
|||
if (defined $eval->flake) {
|
||||
my $fl = $eval->flake;
|
||||
print STDERR "Flake is $fl\n";
|
||||
$eval->flake =~ m!github:([^/]+)/([^/]+)/(.+)$!;
|
||||
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