Skip to content

Commit

Permalink
script: replace funny nix jq thing with real jq
Browse files Browse the repository at this point in the history
  • Loading branch information
horriblename committed Nov 23, 2024
1 parent 3b8f203 commit 5f167ad
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions scripts/ci/latest-hyprland-tag
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,5 @@
## -----
## Prints the tag name of the latest Hyprland release

# if anyone knows jq help me rewrite this
gh release list --repo hyprwm/Hyprland --json tagName,isLatest | \
nix eval --impure --raw --expr 'with builtins; (head (filter (x: x.isLatest) (fromJSON (readFile /dev/stdin)))).tagName'
gh release list --repo hyprwm/Hyprland --json tagName,isLatest \
-q 'map(select(.isLatest == true)) | .[0].tagName'

0 comments on commit 5f167ad

Please sign in to comment.