Skip to content

Commit 6af4341

Browse files
committed
Add short hash to the version
1 parent 53fb626 commit 6af4341

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/release.yml

+3-2
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,9 @@ jobs:
3636
if: startsWith(github.ref, 'refs/tags/')
3737
3838
- run: |
39-
echo "branch-$GITHUB_REF_NAME" > "Assets/${{ env.ASSETS_FOLDER }}/version.txt"
40-
sed -i -e "s/(dev version)/branch-$GITHUB_REF_NAME/g" "Assets/${{ env.ASSETS_FOLDER }}/Subtitles.prefab"
39+
VERSION=$GITHUB_REF_NAME-$(git rev-parse --short "$GITHUB_SHA")
40+
echo "$VERSION" > "Assets/${{ env.ASSETS_FOLDER }}/version.txt"
41+
sed -i -e "s/(dev version)/$VERSION/g" "Assets/${{ env.ASSETS_FOLDER }}/Subtitles.prefab"
4142
if: startsWith(github.ref, 'refs/heads/')
4243
4344
- uses: pCYSl5EDgo/create-unitypackage@v1

0 commit comments

Comments
 (0)