Add function to get github releases

main
Buddy Sandidge 3 years ago
parent 17b343a8fa
commit c779e1975a

@ -58,3 +58,10 @@ yaml_to_json () (
echo "${ARG}" | dasel --read yaml --write json | bat --language json echo "${ARG}" | dasel --read yaml --write json | bat --language json
fi fi
) )
github_releases () (
USER=${1}
REPO=${2}
curl --silent --header "Accept: application/vnd.github.v3+json" \
"https://api.github.com/repos/${USER}/${REPO}/releases"
)

Loading…
Cancel
Save