Browse Source

Fix while loop (#122)

pull/123/head
Vince Grassia 2 years ago committed by GitHub
parent
commit
715eec99a1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 7
      .github/workflows/version-bump.yml

7
.github/workflows/version-bump.yml

@ -174,12 +174,15 @@ jobs: @@ -174,12 +174,15 @@ jobs:
NEW_VERSION: ${{ inputs.version_number }}
run: |
# Wait for version to change.
do
while : ; do
echo "Waiting for version to be updated..."
git pull --force
CURRENT_VERSION=$(xmllint -xpath "/Project/PropertyGroup/Version/text()" src/KeyConnector/KeyConnector.csproj)
# If the versions don't match we continue the loop, otherwise we break out of the loop.
[[ "$NEW_VERSION" != "$CURRENT_VERSION" ]] || break
sleep 10
done while [[ "$NEW_VERSION" != "$CURRENT_VERSION" ]]
done
- name: Cut RC branch
run: |

Loading…
Cancel
Save