From f30860b537ad25569907b8ef2f97fa622f76da61 Mon Sep 17 00:00:00 2001 From: Adam Gordon Bell Date: Wed, 10 Jan 2024 12:37:46 -0500 Subject: [PATCH] update build script --- .github/workflows/summarize.yaml | 2 +- util/functions | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/summarize.yaml b/.github/workflows/summarize.yaml index a93f27575..956268f46 100644 --- a/.github/workflows/summarize.yaml +++ b/.github/workflows/summarize.yaml @@ -44,7 +44,7 @@ jobs: poetry run python util/psupport/psupport/scripts/topcta.py --dir ./blog/_posts git restore ./blog/_posts/2029-01-01-checklist.md - npm install -g markdownlint-cli + npm install -g markdownlint-cli@0.32.0 markdownlint --fix "./blog/_posts/*.md" || true env: diff --git a/util/functions b/util/functions index 9b426fbff..bd11d07c4 100644 --- a/util/functions +++ b/util/functions @@ -343,3 +343,10 @@ lint-frontmatter(){ # Use when you are getting a weird error about frontmatter o # pip install --user yamllint frontmatter | yamllint -c ./util/yamlconfig.yaml - } + +## CTA Changes + +cta_top() { # Change CTA Top + poetry run python util/psupport/psupport/scripts/excerpt.py --file "$(post)" + poetry run python util/psupport/psupport/scripts/topcta.py --file "$(post)" +}