Skip to content

Commit

Permalink
Mooreds/update content check (#2462)
Browse files Browse the repository at this point in the history
* updated content check to look for categories and check titles

* fix category of this post
  • Loading branch information
mooreds authored Aug 16, 2023
1 parent 2bacec9 commit 5b53e4b
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 9 deletions.
11 changes: 11 additions & 0 deletions .github/known-blog-categories.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
Community
Company
Compare
Education
Engineering
Events
News
Product
Release Updates
Security
Tutorial
15 changes: 7 additions & 8 deletions .github/workflows/contentcheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -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 */}"
---
Expand Down

0 comments on commit 5b53e4b

Please sign in to comment.