1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-09-29 04:17:41 +02:00

Fix while loop logic (#7910)

This commit is contained in:
Vince Grassia 2024-02-12 10:35:35 -05:00 committed by GitHub
parent eafe3dec67
commit 90328b1eba
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -322,15 +322,13 @@ jobs:
env: env:
NEW_VERSION: ${{ inputs.version_number }} NEW_VERSION: ${{ inputs.version_number }}
run: | run: |
CURRENT_VERSION=$(cat package.json | jq -r '.version')
# Wait for version to change. # Wait for version to change.
while [[ "$NEW_VERSION" != "$CURRENT_VERSION" ]]
do do
echo "Waiting for version to be updated..." echo "Waiting for version to be updated..."
sleep 10
git pull --force git pull --force
done CURRENT_VERSION=$(cat package.json | jq -r '.version')
sleep 10
done while [[ "$NEW_VERSION" != "$CURRENT_VERSION" ]]
working-directory: apps/browser working-directory: apps/browser
### CLI ### CLI
@ -339,15 +337,13 @@ jobs:
env: env:
NEW_VERSION: ${{ inputs.version_number }} NEW_VERSION: ${{ inputs.version_number }}
run: | run: |
CURRENT_VERSION=$(cat package.json | jq -r '.version')
# Wait for version to change. # Wait for version to change.
while [[ "$NEW_VERSION" != "$CURRENT_VERSION" ]]
do do
echo "Waiting for version to be updated..." echo "Waiting for version to be updated..."
sleep 10
git pull --force git pull --force
done CURRENT_VERSION=$(cat package.json | jq -r '.version')
sleep 10
done while [[ "$NEW_VERSION" != "$CURRENT_VERSION" ]]
working-directory: apps/cli working-directory: apps/cli
### Desktop ### Desktop
@ -356,15 +352,13 @@ jobs:
env: env:
NEW_VERSION: ${{ inputs.version_number }} NEW_VERSION: ${{ inputs.version_number }}
run: | run: |
CURRENT_VERSION=$(cat package.json | jq -r '.version')
# Wait for version to change. # Wait for version to change.
while [[ "$NEW_VERSION" != "$CURRENT_VERSION" ]]
do do
echo "Waiting for version to be updated..." echo "Waiting for version to be updated..."
sleep 10
git pull --force git pull --force
done CURRENT_VERSION=$(cat package.json | jq -r '.version')
sleep 10
done while [[ "$NEW_VERSION" != "$CURRENT_VERSION" ]]
working-directory: apps/desktop working-directory: apps/desktop
### Web ### Web
@ -373,15 +367,13 @@ jobs:
env: env:
NEW_VERSION: ${{ inputs.version_number }} NEW_VERSION: ${{ inputs.version_number }}
run: | run: |
CURRENT_VERSION=$(cat package.json | jq -r '.version')
# Wait for version to change. # Wait for version to change.
while [[ "$NEW_VERSION" != "$CURRENT_VERSION" ]]
do do
echo "Waiting for version to be updated..." echo "Waiting for version to be updated..."
sleep 10
git pull --force git pull --force
done CURRENT_VERSION=$(cat package.json | jq -r '.version')
sleep 10
done while [[ "$NEW_VERSION" != "$CURRENT_VERSION" ]]
working-directory: apps/web working-directory: apps/web
- name: Cut RC branch - name: Cut RC branch