From ba12c16d644b3fae2a0e73e33d3006a6f8c3b2fb Mon Sep 17 00:00:00 2001 From: Ludeeus Date: Sat, 30 Jan 2021 16:16:20 +0000 Subject: [PATCH] Fix date in release drafter --- .github/workflows/release-drafter.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release-drafter.yml b/.github/workflows/release-drafter.yml index 179f450..b68d4d8 100644 --- a/.github/workflows/release-drafter.yml +++ b/.github/workflows/release-drafter.yml @@ -21,7 +21,7 @@ jobs: declare -i newpost latest=$(git describe --tags $(git rev-list --tags --max-count=1)) latestpre=$(echo "$latest" | awk '{split($0,a,"."); print a[1] "." a[2]}') - datepre=$(date --utc '+%y.%m') + datepre=$(date --utc '+%y.%-m') if [[ "$latestpre" == "$datepre" ]]; then latestpost=$(echo "$latest" | awk '{split($0,a,"."); print a[3]}') newpost=$latestpost+1