Skip to content

Commit 991fed6

Browse files
committed
fix mod version updating in gha
1 parent 145147f commit 991fed6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/build_and_publish.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ jobs:
8585
8686
- name: Set version
8787
if: env.UPDATED == 'false' # only change new version if it's not already updated
88-
run: sed -i "s/modVersion.*=.*/modVersion = ${{ github.event.inputs.version }}/g" gradle.properties
88+
run: sed -i -E "s/^[[:space:]]*modVersion[[:space:]]*=.*/modVersion = ${{ github.event.inputs.version }}/" buildscript.properties
8989

9090
- name: Commit and push buildscript.properties
9191
if: env.UPDATED == 'false' # only push new version if it's not already updated

0 commit comments

Comments
 (0)