Skip to content

Instantly share code, notes, and snippets.

@ibiqlik
Created October 7, 2020 07:14
Show Gist options
  • Save ibiqlik/d0f7a70962c1f23cebd9765e2ed941b8 to your computer and use it in GitHub Desktop.
Save ibiqlik/d0f7a70962c1f23cebd9765e2ed941b8 to your computer and use it in GitHub Desktop.
Download latest GitHub release

Required:

  • curl
  • jq
REPO="actions/runner" \
IDENTIFIER="linux-x64" \
curl -O -Ls $(curl -s "https://api.github.com/repos/${REPO}/releases/latest" | jq -r '.assets[] | select(.name | contains("'"${IDENTIFIER}"'")) | .browser_download_url')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment