From 602a900b0a3613e2d410fd9b8b093181c778f0e7 Mon Sep 17 00:00:00 2001 From: Eric Nemchik Date: Sun, 3 Jan 2021 13:10:19 -0600 Subject: [PATCH] Add warning about date format --- .github/workflows/check_samples.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/check_samples.yml b/.github/workflows/check_samples.yml index 58d41ad..bc887f3 100644 --- a/.github/workflows/check_samples.yml +++ b/.github/workflows/check_samples.yml @@ -28,7 +28,7 @@ jobs: VERSION_LINE_MISSING=$(find . -not -path '*/\.*' -type f -name '*.conf.sample' -exec grep -H -c -P '^## Version (?:19|20|21)(?:(?:[13579][26]|[02468][048])\/(?:(?:0[1-9]|1[0-2])\/(?:0[1-9]|1[0-9]|2[0-9])|(?:(?!02)(?:0[1-9]|1[0-2])\/(?:30))|(?:(?:0[13578]|1[02])\/31))|(?:[0-9]{2}\/(?:0[1-9]|1[0-2])\/(?:0[1-9]|1[0-9]|2[0-8])|(?:(?!02)(?:0[1-9]|1[0-2])\/(?:29|30))|(?:(?:0[13578]|1[02])\/31)))$' {} \; | grep 0$ | cut -d':' -f1) VERSION_LINE_MISSING_COUNT=$(echo "${VERSION_LINE_MISSING}" | wc -w) if (( VERSION_LINE_MISSING_COUNT > 0 )); then - echo "The following files are missing the version date line:" + echo "The following files are missing the version date line or it is not formatted correctly (YYYY/MM/DD):" echo "${VERSION_LINE_MISSING}" exit 1 fi