Skip to content

Commit

Permalink
services/hydra: only create channel for nixos toplevel
Browse files Browse the repository at this point in the history
  • Loading branch information
linyinfeng committed Sep 8, 2023
1 parent 88092e3 commit eb5c442
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nixos/profiles/services/hydra/hook.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ if [ "$hit" = "true" ]; then
job=$(jq -r ".job" "$HYDRA_JSON")
echo "job = $job"

if [[ $job =~ ^(.*)\.nixos/(.*)$ && "$(jq --raw-output '.jobset' "$HYDRA_JSON")" == "main" ]]; then
if [[ $job =~ ^(.*)\.nixos/([^/]*)$ && "$(jq --raw-output '.jobset' "$HYDRA_JSON")" == "main" ]]; then
_system="${BASH_REMATCH[1]}"
host="${BASH_REMATCH[2]}"

Expand Down

0 comments on commit eb5c442

Please sign in to comment.