Skip to content

Commit b721644

Browse files
committed
Fix issues with version parsing
1 parent c84143b commit b721644

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/build-binaries.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ jobs:
9393
run: |
9494
cd ${{ github.workspace }}
9595
cd moonscript
96-
echo version = "${{ github.ref_name }}" > version.moon
96+
echo version = \"${{ github.ref_name }}\" > version.moon
9797
echo { version: version, print_version: -> print "Garry's Mod MoonScript #{version}" } >> version.moon
9898
cat version.moon
9999
@@ -103,8 +103,8 @@ jobs:
103103
run: |
104104
cd ${{ github.workspace }}
105105
cd moonscript
106-
shortSha=$(git rev-parse --short ${{ github.sha}})
107-
echo version = "$shortSha" > version.moon
106+
shortSha=$(git rev-parse --short ${{ github.sha }})
107+
echo version = \""$shortSha"\" > version.moon
108108
echo { version: version, print_version: -> print "Garry's Mod MoonScript #{version}" } >> version.moon
109109
cat version.moon
110110

0 commit comments

Comments
 (0)