Skip to content

Commit

Permalink
fix(ci): jq expression
Browse files Browse the repository at this point in the history
  • Loading branch information
deemp committed Apr 30, 2024
1 parent 62d9ccf commit e3c5928
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/buildjet-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ jobs:
- name: Check that the profile doesn't have anything apart from `nix`
shell: bash
run: |
[[ "$(nix profile list --json | jq -rc '.elements | keys.[]')" == "nix" ]]
[[ "$(nix profile list --json | jq -rc '.elements | keys | .[]')" == "nix" ]]
- name: Install nixpkgs#poetry
run: nix profile install nixpkgs#poetry
Expand Down Expand Up @@ -270,7 +270,7 @@ jobs:
- name: Check that the profile doesn't have anything apart from `nix`
shell: bash
run: |
[[ "$(nix profile list --json | jq -rc '.elements | keys.[]')" == "nix" ]]
[[ "$(nix profile list --json | jq -rc '.elements | keys | .[]')" == "nix" ]]
- name: Install nixpkgs#poetry
run: nix profile install nixpkgs#poetry
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ jobs:
- name: Check that the profile doesn't have anything apart from `nix`
shell: bash
run: |
[[ "$(nix profile list --json | jq -rc '.elements | keys.[]')" == "nix" ]]
[[ "$(nix profile list --json | jq -rc '.elements | keys | .[]')" == "nix" ]]
- name: Install nixpkgs#poetry
run: nix profile install nixpkgs#poetry
Expand Down Expand Up @@ -271,7 +271,7 @@ jobs:
- name: Check that the profile doesn't have anything apart from `nix`
shell: bash
run: |
[[ "$(nix profile list --json | jq -rc '.elements | keys.[]')" == "nix" ]]
[[ "$(nix profile list --json | jq -rc '.elements | keys | .[]')" == "nix" ]]
- name: Install nixpkgs#poetry
run: nix profile install nixpkgs#poetry
Expand Down
2 changes: 1 addition & 1 deletion nix/ci.nix
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ in
- name: Check that the profile doesn't have anything apart from `nix`
shell: bash
run: |
[[ "$(nix profile list --json | jq -rc '.elements | keys.[]')" == "nix" ]]
[[ "$(nix profile list --json | jq -rc '.elements | keys | .[]')" == "nix" ]]
- name: Install nixpkgs#poetry
run: nix profile install nixpkgs#poetry
Expand Down

0 comments on commit e3c5928

Please sign in to comment.