fixes
This commit is contained in:
parent
5799b022ff
commit
3369f68d44
1 changed files with 8 additions and 3 deletions
5
.github/workflows/docker-image.yml
vendored
5
.github/workflows/docker-image.yml
vendored
|
|
@ -17,10 +17,15 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
LOCALAPPVER=($(cat sandstorm.version))
|
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'))
|
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
|
if [[ "$LOCALAPPVER" != "$REMOTEAPPVER" ]]; then
|
||||||
echo "$REMOTEAPPVER" >sandstorm.version
|
echo "$REMOTEAPPVER" >sandstorm.version
|
||||||
exit 0
|
exit 0
|
||||||
else
|
else
|
||||||
|
echo "Download Failed"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue