Created
February 24, 2021 21:34
-
-
Save rossedman/af0f3719df672916022a3c7d0ccf74c0 to your computer and use it in GitHub Desktop.
Retrieve latest release tag from a github repo
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
#!/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