Updated Sed expression for Android manifests (#1763)

This commit is contained in:
Micaiah Martin 2022-02-10 09:42:57 -07:00 committed by GitHub
parent 15db96b06c
commit 9eed421c67
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -35,7 +35,7 @@ jobs:
- name: Retrieve Mobile release version - name: Retrieve Mobile release version
id: retrieve-mobile-version id: retrieve-mobile-version
run: | run: |
ver=$(sed -n -e '/android:versionName/ s/.*\= *//p' ./src/Android/Properties/AndroidManifest.xml | tr -d '"') ver=$(sed -E -n '/^<manifest/s/^.*[ ]android:versionName="([^"]+)".*$/\1/p' ./src/Android/Properties/AndroidManifest.xml | tr -d '"')
echo "::set-output name=mobile_version::${ver}" echo "::set-output name=mobile_version::${ver}"
shell: bash shell: bash