Created
July 7, 2020 17:37
-
-
Save rms1000watt/d0e991b22b4886feb0e9e36d05588e7a to your computer and use it in GitHub Desktop.
cURL File from Release in Github
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| download_url=$(curl -s -H "Authorization: token ${GITHUB_ACCESS_TOKEN}" "https://api.github.com/repos/${GH_OWNER}/${GH_REPO}/releases/tags/v1.0.0" | jq '.assets[] | select( .name == "bin-name-v1.0.0-darwin-amd64")' | jq -r ".url") | |
| curl -Lo ssm-env -H "Authorization: token ${GITHUB_ACCESS_TOKEN}" -H "Accept: application/octet-stream" "${download_url}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment