Skip to content

Commit

Permalink
Woops, quickfix md-lint-checker issue, backport metaschema version. (#46
Browse files Browse the repository at this point in the history
)

* Quickfix md-lint-checker issue, backport metaschema version of CI scripts.
  • Loading branch information
aj-stein-nist authored May 4, 2022
1 parent fbec7f5 commit 5ecb790
Showing 1 changed file with 14 additions and 9 deletions.
23 changes: 14 additions & 9 deletions .github/workflows/workflow-validate-repo-markdown.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Validate Repo Markdown
name: Metaschema Validate Repo Markdown
on:
workflow_call:
inputs:
Expand All @@ -13,10 +13,6 @@ on:
default: 'build/config/.markdown-link-check/config.json'
type: string
workflow_dispatch:
branches:
- main
- develop
- "release-*"
inputs:
ignorePattern:
description: 'a pattern provided to grep for files/directories to ignore'
Expand All @@ -34,17 +30,26 @@ jobs:
runs-on: ubuntu-latest
steps:
# use this for pulls where checkout is anonymous
- uses: actions/checkout@v2
- uses: actions/checkout@v3 # current: dcd71f646680f2efd8db4afa5ad64fdcba30e748
with:
submodules: recursive
# Setup runtime environment
# -------------------------
- name: Get markdown-link-check
- name: Set up NodeJS
uses: actions/setup-node@v3 # current: 56337c425554a6be30cdef71bf441f15be286854
with:
node-version-file: 'build/.nvmrc'
cache: 'npm'
cache-dependency-path: '**/package-lock.json'
- name: Setup Dependencies
run: |
sudo npm install -g markdown-link-check
# NodeJS
cd "${{ github.workspace }}/build"
npm install --loglevel verbose
echo "$PWD/node_modules/.bin/" >> $GITHUB_PATH
# Build Artifacts
# ---------------
- name: Validate repo Markdown content instances
run: |
# this command will filter out any docs Markdown files, which are checked in a different job
git ls-files "*/*.md" -z | grep --null-data -v "${{ inputs.ignorePattern }}" | xargs -0 -n1 markdown-link-check -q -c "${{ inputs.markdownLinkCheckConfig }}"
git ls-files "*/*.md" -z | grep --null-data -v "${{ inputs.ignorePattern }}" | xargs -0 -n1 markdown-link-check -q -c "${{ inputs.markdownLinkCheckConfig }}"

0 comments on commit 5ecb790

Please sign in to comment.