From b2632324bd09d8a05acf694bad398c4fe231e923 Mon Sep 17 00:00:00 2001 From: George Adams Date: Thu, 4 Jul 2024 08:31:46 +0100 Subject: [PATCH] fix date check --- .github/workflows/blog-validator.yml | 4 +++- .../blog/removal-of-centos7-eclipse-temurin-images/index.md | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/blog-validator.yml b/.github/workflows/blog-validator.yml index 54b7a41dd..b946c3326 100644 --- a/.github/workflows/blog-validator.yml +++ b/.github/workflows/blog-validator.yml @@ -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 @@ -53,6 +53,8 @@ jobs: "security" "announcement" "release-notes" + "docker" + "containers" ) invalid_tags=() IFS=", " read -r -a tag_array <<< "$tags" diff --git a/content/blog/removal-of-centos7-eclipse-temurin-images/index.md b/content/blog/removal-of-centos7-eclipse-temurin-images/index.md index 1bffc4912..05eb52375 100644 --- a/content/blog/removal-of-centos7-eclipse-temurin-images/index.md +++ b/content/blog/removal-of-centos7-eclipse-temurin-images/index.md @@ -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: