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