Skip to content

Commit 2547808

Browse files
authored
Change version format in dotnet.yml workflow
Update versioning format to include year, month, and day.
1 parent 82f9c84 commit 2547808

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/dotnet.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
- name: 🏷 获取版本号
3838
id: version
3939
run: |
40-
$version = "v1.0.$(Get-Date -Format yyyyMMddHHmmss)"
40+
$version = "v$(Get-Date -Format yyyy).$(Get-Date -Format MM).$(Get-Date -Format dd)"
4141
echo "version=$version" >> $env:GITHUB_OUTPUT
4242
4343
- name: 🚀 创建 Release

0 commit comments

Comments
 (0)