Skip to content

Commit ba12c16

Browse files
committed
Fix date in release drafter
1 parent 19c1790 commit ba12c16

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/release-drafter.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
declare -i newpost
2222
latest=$(git describe --tags $(git rev-list --tags --max-count=1))
2323
latestpre=$(echo "$latest" | awk '{split($0,a,"."); print a[1] "." a[2]}')
24-
datepre=$(date --utc '+%y.%m')
24+
datepre=$(date --utc '+%y.%-m')
2525
if [[ "$latestpre" == "$datepre" ]]; then
2626
latestpost=$(echo "$latest" | awk '{split($0,a,"."); print a[3]}')
2727
newpost=$latestpost+1

0 commit comments

Comments
 (0)