From 5b53e4bf4249c84ae547119c64e7ea6099929d67 Mon Sep 17 00:00:00 2001 From: Dan Moore Date: Wed, 16 Aug 2023 17:01:56 -0600 Subject: [PATCH] Mooreds/update content check (#2462) * updated content check to look for categories and check titles * fix category of this post --- .github/known-blog-categories.txt | 11 +++++++++++ .github/workflows/contentcheck.yml | 15 +++++++-------- .../firebase-and-fusionauth-ciam-comparison.mdx | 2 +- 3 files changed, 19 insertions(+), 9 deletions(-) create mode 100644 .github/known-blog-categories.txt diff --git a/.github/known-blog-categories.txt b/.github/known-blog-categories.txt new file mode 100644 index 0000000000..f3e89f2122 --- /dev/null +++ b/.github/known-blog-categories.txt @@ -0,0 +1,11 @@ +Community +Company +Compare +Education +Engineering +Events +News +Product +Release Updates +Security +Tutorial diff --git a/.github/workflows/contentcheck.yml b/.github/workflows/contentcheck.yml index 1d5a2184c6..11c7683d74 100644 --- a/.github/workflows/contentcheck.yml +++ b/.github/workflows/contentcheck.yml @@ -16,14 +16,13 @@ jobs: # Steps represent a sequence of tasks that will be executed as part of the job steps: - uses: actions/checkout@v3 + - name: Check for blog posts that have incorrect categories + run: | + find astro/src/content/blog/ -type f -name "*.md*" |grep -v swp | xargs grep categories:|sed 's/.*categories: //'|sed 's/, /\n/g'|sort -u > out + RES=`diff out .github/known-blog-categories.txt` + exit $RES + shell: bash - name: Check for titles that have incorrect casing run: | - ! find src/content/articles/ -type f -name "*.md*" |grep -v swp | xargs grep title: |grep -v subtitle|sed 's/.*title: //' | sed "s/'//g" | grep -E '\b[a-z]+\b' + ! find astro/src/content/ -type f -name "*.md*" |grep -v swp | xargs grep title: |grep -v subtitle|sed 's/.*title: //' | sed "s/'//g" | grep -E '\b[a-z]+\b' shell: bash - # use these if we need to check out the built files - #- uses: actions/setup-node@v3 - #with: - #node-version: 20 - #cache: 'npm' - #- name: Build application - #run: npm run build diff --git a/astro/src/content/blog/firebase-and-fusionauth-ciam-comparison.mdx b/astro/src/content/blog/firebase-and-fusionauth-ciam-comparison.mdx index 31d09bdd25..310eeecc3d 100644 --- a/astro/src/content/blog/firebase-and-fusionauth-ciam-comparison.mdx +++ b/astro/src/content/blog/firebase-and-fusionauth-ciam-comparison.mdx @@ -5,7 +5,7 @@ description: Compare FusionAuth and Firebase for your identity and access manage authors: Bryan Giese updated_date: 2022-05-19 image: /img/blogs/firebase-and-fusionauth-ciam-comparison/firebase-and-fusionauth-comparison.jpg -categories: Comparison +categories: Compare tags: firebase, ciam excerpt_separator: "{/* more */}" ---