From c9c0d0b4d6be9f47d16009dd977962e92bfe1f85 Mon Sep 17 00:00:00 2001 From: Vince Grassia <593223+vgrassia@users.noreply.github.com> Date: Mon, 12 Feb 2024 13:20:29 -0500 Subject: [PATCH] Fix while loop (#3003) --- .github/workflows/version-bump.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/version-bump.yml b/.github/workflows/version-bump.yml index bd258f809..81e99a5c8 100644 --- a/.github/workflows/version-bump.yml +++ b/.github/workflows/version-bump.yml @@ -197,15 +197,18 @@ jobs: NEW_VERSION: ${{ inputs.version_number }} run: | # Wait for version to change. - do + while : ; do echo "Waiting for version to be updated..." git pull --force CURRENT_VERSION=$(xmllint --xpath ' string(/manifest/@*[local-name()="versionName" and namespace-uri()="http://schemas.android.com/apk/res/android"]) ' src/App/Platforms/Android/AndroidManifest.xml) + + # If the versions don't match we continue the loop, otherwise we break out of the loop. + [[ "$NEW_VERSION" != "$CURRENT_VERSION" ]] || break sleep 10 - done while [[ "$NEW_VERSION" != "$CURRENT_VERSION" ]] + done - name: Cut RC branch run: |