We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5c13f92 commit cff2f9bCopy full SHA for cff2f9b
.github/workflows/build-and-release.yml
@@ -24,7 +24,7 @@ jobs:
24
- name: Extract version
25
id: get_version
26
run: |
27
- VERSION=$(grep -E '^version\s*=\s*["'\''"]' build.gradle | head -n 1 | cut -d'"' -f2 | cut -d"'" -f2)
+ VERSION=$(grep -E "^version\s+['\"]" build.gradle | head -n 1 | sed -E "s/version\s+['\"]([^'\"]+)['\"]/\1/")
28
echo "Found version: $VERSION"
29
echo "::set-output name=VERSION::$VERSION"
30
0 commit comments