Skip to content

Commit 35ef94b

Browse files
committed
try fix version reading in gha
1 parent 95c176f commit 35ef94b

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

.github/workflows/build_and_publish.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,8 @@ jobs:
5656
- name: Read current mod version
5757
id: read_version
5858
run: |
59-
mod_version=$(grep "modVersion" gradle.properties | cut -d'=' -f2 | tr -d '[:space:]')
59+
mod_version=$(grep -E '^ *modVersion[[:space:]]*=' gradle.properties | cut -d'=' -f2 | tr -d '[:space:]')
60+
echo "Current mod version: $mod_version"
6061
if [ "$mod_version" == "${{inputs.version}}" ]; then
6162
echo "UPDATED=true" >> $GITHUB_ENV
6263
else

0 commit comments

Comments
 (0)