Skip to content

Commit

Permalink
Fix while loop (#448)
Browse files Browse the repository at this point in the history
  • Loading branch information
vgrassia committed Feb 12, 2024
1 parent 930f8c8 commit 4c61498
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/version-bump.yml
Original file line number Diff line number Diff line change
Expand Up @@ -168,12 +168,15 @@ 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=$(cat package.json | jq -r '.version')
# 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: |
Expand Down

0 comments on commit 4c61498

Please sign in to comment.