Skip to content

Instantly share code, notes, and snippets.

@rossedman
Created February 24, 2021 21:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rossedman/af0f3719df672916022a3c7d0ccf74c0 to your computer and use it in GitHub Desktop.
Save rossedman/af0f3719df672916022a3c7d0ccf74c0 to your computer and use it in GitHub Desktop.
Retrieve latest release tag from a github repo
#!/bin/bash
REPO="actions/runner"
curl -s "https://api.github.com/repos/${REPO}/releases/latest" \
| jq -r .tag_name \
| cut -d'v' -f2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment