mirror of
https://github.com/bitwarden/directory-connector
synced 2025-12-10 21:33:20 +00:00
Fix while loop logic (#447)
This commit is contained in:
8
.github/workflows/version-bump.yml
vendored
8
.github/workflows/version-bump.yml
vendored
@@ -167,15 +167,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" ]]
|
||||||
|
|
||||||
- name: Cut RC branch
|
- name: Cut RC branch
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
Reference in New Issue
Block a user