mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-09-22 13:08:39 +03:00
Merge pull request #174857 from cdepillabout/purescript-updates
purescript: update script only considers full releases
This commit is contained in:
commit
79f4249f74
@ -14,7 +14,7 @@ purescript_derivation_file="${script_dir}/default.nix"
|
|||||||
old_version="$(sed -En 's/.*\bversion = "(.*?)".*/\1/p' "$purescript_derivation_file")"
|
old_version="$(sed -En 's/.*\bversion = "(.*?)".*/\1/p' "$purescript_derivation_file")"
|
||||||
|
|
||||||
# This is the latest release version of PureScript on GitHub.
|
# This is the latest release version of PureScript on GitHub.
|
||||||
new_version=$(curl --silent "https://api.github.com/repos/purescript/purescript/releases" | jq '.[0].tag_name' --raw-output | sed -e 's/v//')
|
new_version=$(curl --silent "https://api.github.com/repos/purescript/purescript/releases/latest" | jq '.tag_name' --raw-output | sed -e 's/v//')
|
||||||
|
|
||||||
echo "Updating purescript from old version v${old_version} to new version v${new_version}."
|
echo "Updating purescript from old version v${old_version} to new version v${new_version}."
|
||||||
echo
|
echo
|
||||||
|
Loading…
Reference in New Issue
Block a user