From 5ecb7900224544fd92e2dbacf83377f1f1289520 Mon Sep 17 00:00:00 2001 From: Alexander Stein Date: Wed, 4 May 2022 09:49:42 -0400 Subject: [PATCH] Woops, quickfix md-lint-checker issue, backport metaschema version. (#46) * Quickfix md-lint-checker issue, backport metaschema version of CI scripts. --- .../workflow-validate-repo-markdown.yml | 23 +++++++++++-------- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/.github/workflows/workflow-validate-repo-markdown.yml b/.github/workflows/workflow-validate-repo-markdown.yml index 7b06d0b744..c6c11994aa 100644 --- a/.github/workflows/workflow-validate-repo-markdown.yml +++ b/.github/workflows/workflow-validate-repo-markdown.yml @@ -1,4 +1,4 @@ -name: Validate Repo Markdown +name: Metaschema Validate Repo Markdown on: workflow_call: inputs: @@ -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' @@ -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 }}" \ No newline at end of file + git ls-files "*/*.md" -z | grep --null-data -v "${{ inputs.ignorePattern }}" | xargs -0 -n1 markdown-link-check -q -c "${{ inputs.markdownLinkCheckConfig }}"