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:
parent
eafe3dec67
commit
90328b1eba
32
.github/workflows/version-bump.yml
vendored
32
.github/workflows/version-bump.yml
vendored
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user