Skip to content

Commit 5c13f92

Browse files
authored
Update build-and-release.yml
1 parent 7b7c21e commit 5c13f92

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/build-and-release.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
- name: Extract version
2525
id: get_version
2626
run: |
27-
VERSION=$(grep -E '^version\s*=' build.gradle | head -n 1 | cut -d'"' -f2)
27+
VERSION=$(grep -E '^version\s*=\s*["'\''"]' build.gradle | head -n 1 | cut -d'"' -f2 | cut -d"'" -f2)
2828
echo "Found version: $VERSION"
2929
echo "::set-output name=VERSION::$VERSION"
3030

0 commit comments

Comments
 (0)