diff --git a/nix/lib/github/githubWebhook.nix b/nix/lib/github/githubWebhook.nix index 94209627..653ab003 100644 --- a/nix/lib/github/githubWebhook.nix +++ b/nix/lib/github/githubWebhook.nix @@ -22,7 +22,7 @@ utils: lib: { echo null | jq --argjson body "$body" '[] | if $body.created or $body.deleted then . + [{"command":"UpdateJobsets"}] else . end - | if $body.deleted | not then . + [{"command":"EvaluateJobset","name":$body.ref|split("/")|.[2]}] else . end + | if $body.deleted | not then . + [{"command":"EvaluateJobset","name":$body.ref|split("/")|.[2:]|join("/")}] else . end | .' ''; };