2342 shaares
1311 private links
1311 private links
Un script pour récupérer la dernière release d'un repo Github.
#!/bin/bash
if [[ $# != 1 ]]; then
echo "Usage: github_latest \"<repo author>/<repo name\""
exit 1
fi
curl -s "https://api.github.com/repos/$1/releases/latest" | jq -r '.tag_name'