Skip to content

Commit

Permalink
Fix date in release drafter
Browse files Browse the repository at this point in the history
  • Loading branch information
ludeeus committed Jan 30, 2021
1 parent 19c1790 commit ba12c16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/release-drafter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ba12c16

Please sign in to comment.