Skip to content

Commit 3ae6e1a

Browse files
committed
feat: allow future dates for articles
1 parent 1db6ef0 commit 3ae6e1a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/pr-publishing-dates.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,8 @@ jobs:
9393
if [[ ! "$post_date" =~ ^[0-9]{4}-[0-9]{2}-[0-9]{2}$ ]]; then
9494
echo "In '$mdfile' YAML header, make sure the date is in YYYY-MM-DD format."
9595
error_found=1
96-
elif [[ "$post_date" != "$today" ]]; then
97-
echo "In '$mdfile' YAML header, make sure the date is today: $today."
96+
elif [[ "$post_date" < "$today" ]]; then
97+
echo "In '$mdfile' YAML header, make sure the date is not in the past (found: $post_date, today: $today)."
9898
error_found=1
9999
fi
100100
fi

0 commit comments

Comments
 (0)