Skip to content

Instantly share code, notes, and snippets.

@luzpaz
Last active April 7, 2022 00:16
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 luzpaz/a2e0b6a283d1b48fc1b990f277f6017a to your computer and use it in GitHub Desktop.
Save luzpaz/a2e0b6a283d1b48fc1b990f277f6017a to your computer and use it in GitHub Desktop.
# get total commit count
curl --silent -I -k "https://api.github.com/repos/FreeCAD/FreeCAD/commits?per_page=1" | sed -n '/^[Ll]ink:/ s/.*"next".*page=\([0-9]*\).*"last".*/\1/p'
# get AppImage release number
curl -s -H "Accept: application/vnd.github.v3+json" https://api.github.com/repos/FreeCAD/FreeCAD-bundle/releases/tags/weekly-builds | jq '.assets[].name' | grep -e 'AppImage\"$' | sed -r 's/.*-([0-9]{5}).*/\1/'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment