Daniel Thwaites 2023-02-26 15:05:03 +00:00
parent 94a441c9e2
commit 7073e660ed
No known key found for this signature in database
GPG key ID: D8AFC4BF05670F9D

View file

@ -18,7 +18,7 @@ jobs:
- name: List packages
id: list-packages
run: |
nix flake show . --json | jq -rc '{checks: (.checks // {}), packages: (.packages // {})} | to_entries | map(.key as $type | .value | to_entries | map(select(.key == "x86_64-linux") | .value | to_entries | map({type: $type, key: .key})) | flatten) | flatten | "::set-output name=packages::\(.)"'
nix flake show . --json | jq -rc '{checks: (.checks // {}), packages: (.packages // {})} | to_entries | map(.key as $type | .value | to_entries | map(select(.key == "x86_64-linux") | .value | to_entries | map({type: $type, key: .key})) | flatten) | flatten | "packages=\(.)"' >> $GITHUB_OUTPUT
outputs:
packages: ${{ steps.list-packages.outputs.packages }}