This commit is contained in:
AndrewMarchukov 2022-07-13 21:40:38 +04:00
parent b814dfad21
commit dc9a1366a8

View file

@ -14,15 +14,15 @@ jobs:
- name: Check new version - name: Check new version
id: status id: status
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 [[ "$LOCALAPPVER" != "$REMOTEAPPVER" ]]; then if [[ "$LOCALAPPVER" != "$REMOTEAPPVER" ]]; then
echo "$REMOTEAPPVER" > sandstorm.version echo "$REMOTEAPPVER" > sandstorm.version
exit 0 exit 0
else else
exit 1 exit 1
fi fi
shell: bash shell: /bin/bash -e {0}
- name: login to git - name: login to git
run: | run: |
git config --global user.name 'Andrew Marchukov' git config --global user.name 'Andrew Marchukov'