Skip to content

Commit

Permalink
tools: fix show_manual_release_cmd.vsh, use .strftime(%V) for calcula…
Browse files Browse the repository at this point in the history
…ting the proper default week number
  • Loading branch information
spytheman committed Feb 11, 2025
1 parent a65d5ae commit 2054d46
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/show_manual_release_cmd.vsh
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
import os
import time
import math
import term

now := time.now()
year := now.year
week := int(math.ceil(f64(now.year_day()) / 7.0))
week := now.strftime('%V')

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

0 comments on commit 2054d46

Please sign in to comment.