Skip to content

Commit cff2f9b

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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
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*=\s*["'\''"]' build.gradle | head -n 1 | cut -d'"' -f2 | cut -d"'" -f2)
27+
VERSION=$(grep -E "^version\s+['\"]" build.gradle | head -n 1 | sed -E "s/version\s+['\"]([^'\"]+)['\"]/\1/")
2828
echo "Found version: $VERSION"
2929
echo "::set-output name=VERSION::$VERSION"
3030

0 commit comments

Comments
 (0)