Skip to content

Commit a567e04

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

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

.github/workflows/vm-tests.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,12 @@ jobs:
234234
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')"
237+
current_nc_version_new="$(ssh "${SSH_OPTIONS[@]}" "root@${SERVER_ADDRESS}" "ncc status" | grep "version:" | awk '{ print $3 }')"
238+
239+
if [[ "$current_nc_version_new" =~ "$latest_nc_version".* ]]
240+
then
241+
exit 0
242+
fi
237243
238244
for i in {1..10};
239245
do

0 commit comments

Comments
 (0)