mirror of
https://github.com/VSCodium/vscodium.git
synced 2024-12-23 17:04:12 +03:00
fix: correct script to get latest snap version (#945)
This commit is contained in:
parent
33a6670cad
commit
36b06dd66b
@ -13,10 +13,8 @@ elif [[ "${GITHUB_EVENT_NAME}" == "push" ]]; then
|
||||
else
|
||||
echo "It's a cron"
|
||||
|
||||
sudo apt install curl jq
|
||||
|
||||
sudo curl -sS --unix-socket /run/snapd.socket http://localhost/v2/find\?q\=codium > snap_latest.json
|
||||
SNAP_VERSION=$(jq -r '.result|map(select(.id == "lIZWXTqmo6LFSts5Cgk2VPlNwtysZAeH"))|.version' snap_latest.json)
|
||||
SNAP_VERSION=$(jq -r '.result|map(select(.id == "lIZWXTqmo6LFSts5Cgk2VPlNwtysZAeH"))|last.version' snap_latest.json)
|
||||
echo "Snap version: ${SNAP_VERSION}"
|
||||
|
||||
wget --quiet https://api.github.com/repos/VSCodium/vscodium/releases -O gh_latest.json
|
||||
|
Loading…
Reference in New Issue
Block a user