mirror of
https://github.com/bitwarden/browser.git
synced 2025-01-30 22:41:33 +01:00
Fix while loop logic (#7910)
This commit is contained in:
parent
eafe3dec67
commit
90328b1eba
32
.github/workflows/version-bump.yml
vendored
32
.github/workflows/version-bump.yml
vendored
@ -322,15 +322,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" ]]
|
||||
working-directory: apps/browser
|
||||
|
||||
### CLI
|
||||
@ -339,15 +337,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" ]]
|
||||
working-directory: apps/cli
|
||||
|
||||
### Desktop
|
||||
@ -356,15 +352,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" ]]
|
||||
working-directory: apps/desktop
|
||||
|
||||
### Web
|
||||
@ -373,15 +367,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" ]]
|
||||
working-directory: apps/web
|
||||
|
||||
- name: Cut RC branch
|
||||
|
Loading…
Reference in New Issue
Block a user