mirror of
https://github.com/bitwarden/browser
synced 2025-12-13 14:53:33 +00:00
Fix while loop (#7918)
This commit is contained in:
28
.github/workflows/version-bump.yml
vendored
28
.github/workflows/version-bump.yml
vendored
@@ -323,12 +323,15 @@ jobs:
|
|||||||
NEW_VERSION: ${{ inputs.version_number }}
|
NEW_VERSION: ${{ inputs.version_number }}
|
||||||
run: |
|
run: |
|
||||||
# Wait for version to change.
|
# Wait for version to change.
|
||||||
do
|
while : ; do
|
||||||
echo "Waiting for version to be updated..."
|
echo "Waiting for version to be updated..."
|
||||||
git pull --force
|
git pull --force
|
||||||
CURRENT_VERSION=$(cat package.json | jq -r '.version')
|
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
|
sleep 10
|
||||||
done while [[ "$NEW_VERSION" != "$CURRENT_VERSION" ]]
|
done
|
||||||
working-directory: apps/browser
|
working-directory: apps/browser
|
||||||
|
|
||||||
### CLI
|
### CLI
|
||||||
@@ -338,12 +341,15 @@ jobs:
|
|||||||
NEW_VERSION: ${{ inputs.version_number }}
|
NEW_VERSION: ${{ inputs.version_number }}
|
||||||
run: |
|
run: |
|
||||||
# Wait for version to change.
|
# Wait for version to change.
|
||||||
do
|
while : ; do
|
||||||
echo "Waiting for version to be updated..."
|
echo "Waiting for version to be updated..."
|
||||||
git pull --force
|
git pull --force
|
||||||
CURRENT_VERSION=$(cat package.json | jq -r '.version')
|
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
|
sleep 10
|
||||||
done while [[ "$NEW_VERSION" != "$CURRENT_VERSION" ]]
|
done
|
||||||
working-directory: apps/cli
|
working-directory: apps/cli
|
||||||
|
|
||||||
### Desktop
|
### Desktop
|
||||||
@@ -353,12 +359,15 @@ jobs:
|
|||||||
NEW_VERSION: ${{ inputs.version_number }}
|
NEW_VERSION: ${{ inputs.version_number }}
|
||||||
run: |
|
run: |
|
||||||
# Wait for version to change.
|
# Wait for version to change.
|
||||||
do
|
while : ; do
|
||||||
echo "Waiting for version to be updated..."
|
echo "Waiting for version to be updated..."
|
||||||
git pull --force
|
git pull --force
|
||||||
CURRENT_VERSION=$(cat package.json | jq -r '.version')
|
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
|
sleep 10
|
||||||
done while [[ "$NEW_VERSION" != "$CURRENT_VERSION" ]]
|
done
|
||||||
working-directory: apps/desktop
|
working-directory: apps/desktop
|
||||||
|
|
||||||
### Web
|
### Web
|
||||||
@@ -368,12 +377,15 @@ jobs:
|
|||||||
NEW_VERSION: ${{ inputs.version_number }}
|
NEW_VERSION: ${{ inputs.version_number }}
|
||||||
run: |
|
run: |
|
||||||
# Wait for version to change.
|
# Wait for version to change.
|
||||||
do
|
while : ; do
|
||||||
echo "Waiting for version to be updated..."
|
echo "Waiting for version to be updated..."
|
||||||
git pull --force
|
git pull --force
|
||||||
CURRENT_VERSION=$(cat package.json | jq -r '.version')
|
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
|
sleep 10
|
||||||
done while [[ "$NEW_VERSION" != "$CURRENT_VERSION" ]]
|
done
|
||||||
working-directory: apps/web
|
working-directory: apps/web
|
||||||
|
|
||||||
- name: Cut RC branch
|
- name: Cut RC branch
|
||||||
|
|||||||
Reference in New Issue
Block a user