From 930f8c84d571d0bd007912583efc31b64b4f0ca9 Mon Sep 17 00:00:00 2001 From: Vince Grassia <593223+vgrassia@users.noreply.github.com> Date: Mon, 12 Feb 2024 10:35:31 -0500 Subject: [PATCH] Fix while loop logic (#447) --- .github/workflows/version-bump.yml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/version-bump.yml b/.github/workflows/version-bump.yml index 11729b09..32944438 100644 --- a/.github/workflows/version-bump.yml +++ b/.github/workflows/version-bump.yml @@ -167,15 +167,13 @@ jobs: env: NEW_VERSION: ${{ inputs.version_number }} run: | - CURRENT_VERSION=$(cat package.json | jq -r '.version') - # Wait for version to change. - while [[ "$NEW_VERSION" != "$CURRENT_VERSION" ]] do echo "Waiting for version to be updated..." - sleep 10 git pull --force - done + CURRENT_VERSION=$(cat package.json | jq -r '.version') + sleep 10 + done while [[ "$NEW_VERSION" != "$CURRENT_VERSION" ]] - name: Cut RC branch run: |