mirror of
https://github.com/bitwarden/mobile
synced 2024-12-23 15:34:01 +01:00
Fix while loop (#3003)
This commit is contained in:
parent
fec0743e4d
commit
c9c0d0b4d6
7
.github/workflows/version-bump.yml
vendored
7
.github/workflows/version-bump.yml
vendored
@ -197,15 +197,18 @@ 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=$(xmllint --xpath '
|
CURRENT_VERSION=$(xmllint --xpath '
|
||||||
string(/manifest/@*[local-name()="versionName"
|
string(/manifest/@*[local-name()="versionName"
|
||||||
and namespace-uri()="http://schemas.android.com/apk/res/android"])
|
and namespace-uri()="http://schemas.android.com/apk/res/android"])
|
||||||
' src/App/Platforms/Android/AndroidManifest.xml)
|
' src/App/Platforms/Android/AndroidManifest.xml)
|
||||||
|
|
||||||
|
# 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
|
||||||
|
|
||||||
- name: Cut RC branch
|
- name: Cut RC branch
|
||||||
run: |
|
run: |
|
||||||
|
Loading…
Reference in New Issue
Block a user