Skip to content

Commit b402a55

Browse files
authored
Update version number
1 parent 749fc70 commit b402a55

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

.github/workflows/build.yml

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,14 +54,20 @@ jobs:
5454
run: |
5555
php easyengine.phar cli info
5656
57+
# Bước mới: Đọc nội dung file VERSION
58+
- name: Read VERSION file content
59+
id: get_version
60+
run: echo "VERSION_CONTENT=$(cat VERSION)" >> $GITHUB_OUTPUT
61+
5762
- name: Create Git tag
5863
id: tag
5964
run: |
60-
DATE=$(date +%Y%m%d)
61-
COMMIT_SHORT=$(git rev-parse --short HEAD)
62-
echo "TAG=v4.0.0-custom-$DATE-$COMMIT_SHORT" >> $GITHUB_OUTPUT
63-
git tag $TAG
64-
git push origin $TAG
65+
# Sử dụng nội dung từ file VERSION và thêm "-custom"
66+
VERSION_FROM_FILE="${{ steps.get_version.outputs.VERSION_CONTENT }}"
67+
TAG_NAME="${VERSION_FROM_FILE}-custom"
68+
echo "TAG=${TAG_NAME}" >> $GITHUB_OUTPUT
69+
git tag "${TAG_NAME}"
70+
git push origin "${TAG_NAME}"
6571
6672
- name: Create Release
6773
uses: softprops/action-gh-release@v1

0 commit comments

Comments
 (0)