Skip to content

Commit 71de47b

Browse files
committed
vm-tests.yml: Fix breaking update tests if no new nc version available
1 parent f1541dc commit 71de47b

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

.github/workflows/vm-tests.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,11 @@ jobs:
235235
ssh "${SSH_OPTIONS[@]}" "root@${SERVER_ADDRESS}" "ncc status" | grep "version:" | awk '{ print $3 }'
236236
latest_nc_version="$(cat /__w/nextcloudpi/nextcloudpi/etc/ncp.cfg | jq -r '.nextcloud_version')"
237237
238+
if [[ "$current_nc_version_new" =~ "$latest_nc_version".* ]]
239+
then
240+
exit 0
241+
fi
242+
238243
for i in {1..10};
239244
do
240245
echo "running nc update $i/10..."

0 commit comments

Comments
 (0)