Skip to content

Commit 145147f

Browse files
committed
fix mod version parsing in gha
1 parent 5e6fb08 commit 145147f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/build_and_publish.yaml

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

0 commit comments

Comments
 (0)