Skip to content

Commit aaf0f9d

Browse files
Copilotdrag0sd0g
andcommitted
Fix version extraction in release workflow to prevent tag collision
Co-authored-by: drag0sd0g <[email protected]>
1 parent c52006b commit aaf0f9d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
- name: Get version from build.gradle
3939
id: get_version
4040
run: |
41-
VERSION=$(grep "version" build.gradle | head -1 | awk -F'"' '{print $2}')
41+
VERSION=$(grep '^\s*version' build.gradle | head -1 | awk -F'"' '{print $2}')
4242
echo "version=$VERSION" >> $GITHUB_OUTPUT
4343
echo "Version: $VERSION"
4444

0 commit comments

Comments
 (0)