Skip to content

Commit

Permalink
Merge pull request #138 from stakater/revert-136-markdownlinter
Browse files Browse the repository at this point in the history
  • Loading branch information
rasheedamir authored Nov 21, 2024
2 parents c49ac61 + 9360f21 commit f48dacb
Showing 1 changed file with 9 additions and 17 deletions.
26 changes: 9 additions & 17 deletions .github/workflows/pull_request_doc_qa.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@ name: Documentation Quality Assurance
on:
workflow_call:
inputs:
DOC_SRC:
description: Documentation source
MD_CONFIG:
description: Markdown link checker config file
required: true
type: string
MD_CONFIG:
description: Markdown link-checker configuration file
DOC_SRC:
description: Documentation directory
required: true
type: string
MD_LINT_CONFIG:
description: Markdown linting configuration file
description: Markdown lint config file
required: true
type: string

Expand Down Expand Up @@ -69,16 +69,8 @@ jobs:
- uses: actions/checkout@v4
with:
ref: ${{github.event.pull_request.head.sha}}
- name: Convert the spaces in the doc source input to newlines
id: doc_src_newlines
run: |
doc_src_newlines=$(echo "${{inputs.DOC_SRC}}" | sed -e 's/ /\n/g')
echo 'DOC_SRC_NEWLINES<<EOF' >> $GITHUB_OUTPUT
echo "${doc_src_newlines}" >> $GITHUB_OUTPUT
echo 'EOF' >> $GITHUB_OUTPUT
- name: markdown linting check
uses: DavidAnson/[email protected]
- name: markdownlint-cli
uses: nosborn/[email protected]
with:
globs: |
${{ steps.doc_src_newlines.outputs.DOC_SRC_NEWLINES }}
config: ${{inputs.MD_LINT_CONFIG}}
files: ${{inputs.DOC_SRC}}
config_file: ${{inputs.MD_LINT_CONFIG}}

0 comments on commit f48dacb

Please sign in to comment.