Skip to content

Commit ee27fab

Browse files
committed
change version format
1 parent 866a1bc commit ee27fab

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030

3131
- name: Set CalVer version
3232
id: calver
33-
run: echo "VERSION=$(date -u +'%Y.%m.%d')" >> $GITHUB_ENV
33+
run: echo "VERSION=$(date -u +'%Y.%m.%d.%H%M')" >> $GITHUB_ENV
3434

3535
- name: Create GitHub Release
3636
uses: elgohr/Github-Release-Action@v5

build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ plugins {
1212
group = "cc.modlabs"
1313

1414
version = Calendar.getInstance(TimeZone.getTimeZone("UTC")).run {
15-
"${get(Calendar.YEAR)}.${get(Calendar.MONTH) + 1}.${get(Calendar.DAY_OF_MONTH)}"
15+
"${get(Calendar.YEAR)}.${get(Calendar.MONTH) + 1}.${get(Calendar.DAY_OF_MONTH)}.${get(Calendar.HOUR_OF_DAY)}${get(Calendar.MINUTE)}"
1616
}
1717

1818
repositories {

0 commit comments

Comments
 (0)