Skip to content

Commit 2054d46

Browse files
committed
tools: fix show_manual_release_cmd.vsh, use .strftime(%V) for calculating the proper default week number
1 parent a65d5ae commit 2054d46

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

‎.github/workflows/show_manual_release_cmd.vsh‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
import os
22
import time
3-
import math
43
import term
54

65
now := time.now()
76
year := now.year
8-
week := int(math.ceil(f64(now.year_day()) / 7.0))
7+
week := now.strftime('%V')
98

109
mut remote_name := 'origin'
1110
mut release_tag := 'weekly.${year:04}.${week:02}'

0 commit comments

Comments
 (0)