Všechno Nové

user:thomas gists created by user

title:mygist gists with given title

description:sync gists with given description

filename:myfile.txt gists having files with given name

extension:yml gists having files with given extension

language:go gists having files with given language

topic:homelab gists with given topic

all:systemctl search all fields

Registrovat

Přihlásit se

Všechno Nové Registrovat Přihlásit se

All gists matching topic github

Nedávno Vytvořeno
Nejméně nedávno Vytvořeno
Nedávno Aktualizováno
Nejméně nedávno Aktualizováno
anthony's Avatar

anthony / Get latest release from GitHub

0 Lajky
0 Forky
1 Soubory
Naposledy aktivní 1 week ago
Taken from https://gist.github.com/shakahl/d629dbe9d41f57699dba597929582c9f
curl github shell
1 #!/bin/bash
2 get_latest_release() {
3 curl --silent "https://api.github.com/repos/$1/releases/latest" | # Get latest release from GitHub api
4 grep '"tag_name":' | # Get tag line
5 sed -E 's/.*"([^"]+)".*/\1/' # Pluck JSON value
6 }
Novější Starší

Vytvořeno pomocí Opengist ⋅ Load: 285ms⋅

Čeština
العربية Čeština Deutsch English Español Français Magyar Italiano 日本語 Polski Português Русский Türkçe Українська 简体中文 繁體中文