Merge pull request #174857 from cdepillabout/purescript-updates

purescript: update script only considers full releases
This commit is contained in:
Sandro 2022-05-27 18:49:28 +02:00 committed by GitHub
commit 79f4249f74
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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