This commit is contained in:
AndrewMarchukov 2022-07-14 15:32:14 +04:00
parent 5799b022ff
commit 3369f68d44

View file

@ -17,10 +17,15 @@ jobs:
run: |
LOCALAPPVER=($(cat sandstorm.version))
REMOTEAPPVER=($(curl -s -X GET 'https://api.steamcmd.net/v1/info/581330' | jq -r -e '.data."581330".depots."581333".manifests.public'))
if [ -z "$REMOTEAPPVER" -a "$REMOTEAPPVER" = " " ]; then
echo "Empty Response"
exit 1
fi
if [[ "$LOCALAPPVER" != "$REMOTEAPPVER" ]]; then
echo "$REMOTEAPPVER" >sandstorm.version
exit 0
else
echo "Download Failed"
exit 1
fi
shell: bash