Skip to content

Commit

Permalink
fix date check
Browse files Browse the repository at this point in the history
  • Loading branch information
gdams committed Jul 4, 2024
1 parent 99fe565 commit b263232
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/blog-validator.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
# shellcheck disable=2043
for added_file in ${{ steps.files.outputs.added }}; do
if [[ ${added_file} =~ ^content/blog.*.md ]]; then
blog_date=$(grep 'date:' "${added_file}" | sed -n -e 's/^.*date: //p' | tr -d '"')
blog_date=$(grep '^date:' "${added_file}" | sed -n -e 's/^.*date: //p' | tr -d '"')
# Return difference in days between today and blog date
diff=$(( ($(date +%s) - $(date --date "${blog_date}" +%s)) / (60*60*24) ))
if [[ ${diff} -gt 0 ]]; then
Expand All @@ -53,6 +53,8 @@ jobs:
"security"
"announcement"
"release-notes"
"docker"
"containers"
)
invalid_tags=()
IFS=", " read -r -a tag_array <<< "$tags"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: "Important Update: Removal of CentOS 7 Eclipse Temurin Images"
date: "2024-07-03T16:00:00+00:00"
date: "2024-07-04T12:00:00+00:00"
author: georgeadams
description: We would like to inform our users that as of the next PSU release on July 16th, Eclipse Temurin images with the CentOS 7 base will be removed.
tags:
Expand Down

0 comments on commit b263232

Please sign in to comment.