From 1803386818bccf375e0e53cbb49f56212d29ce21 Mon Sep 17 00:00:00 2001 From: Danila Danko Date: Tue, 30 Apr 2024 23:29:18 +0300 Subject: [PATCH] fix(ci): jq wants a string in the error --- .github/workflows/buildjet-ci.yaml | 4 ++-- .github/workflows/ci.yaml | 4 ++-- nix/ci.nix | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/buildjet-ci.yaml b/.github/workflows/buildjet-ci.yaml index dfed7f95..ca759fc3 100644 --- a/.github/workflows/buildjet-ci.yaml +++ b/.github/workflows/buildjet-ci.yaml @@ -200,7 +200,7 @@ jobs: .elements | keys | map(select(. != "nix")) - | if . != [] then error(.) else . end + | if . != [] then error("The registry contains not only Nix") else . end ' - name: Install nixpkgs#poetry @@ -269,7 +269,7 @@ jobs: .elements | keys | map(select(. != "nix")) - | if . != [] then error(.) else . end + | if . != [] then error("The registry contains not only Nix") else . end ' - name: Install nixpkgs#poetry diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 48d5bca6..74bfeb7f 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -204,7 +204,7 @@ jobs: .elements | keys | map(select(. != "nix")) - | if . != [] then error(.) else . end + | if . != [] then error("The registry contains not only Nix") else . end ' - name: Install nixpkgs#poetry @@ -270,7 +270,7 @@ jobs: .elements | keys | map(select(. != "nix")) - | if . != [] then error(.) else . end + | if . != [] then error("The registry contains not only Nix") else . end ' - name: Install nixpkgs#poetry diff --git a/nix/ci.nix b/nix/ci.nix index b8265955..897eaad0 100644 --- a/nix/ci.nix +++ b/nix/ci.nix @@ -246,7 +246,7 @@ in .elements | keys | map(select(. != "nix")) - | if . != [] then error(.) else . end + | if . != [] then error("The registry contains not only Nix") else . end ' - name: Install nixpkgs#poetry