From ff78c3450348f42a416e35f4cdd0bc9329fdbfcb Mon Sep 17 00:00:00 2001 From: Pauline <4224001+paulineribeyre@users.noreply.github.com> Date: Fri, 20 Oct 2023 15:51:40 -0500 Subject: [PATCH] reusable wf --- .github/workflows/validate_markdown.yaml | 26 ++++++------------- .../workflows/validate_markdown_links.json | 9 ------- .../workflows/validate_markdown_lint.jsonc | 12 --------- 3 files changed, 8 insertions(+), 39 deletions(-) delete mode 100644 .github/workflows/validate_markdown_links.json delete mode 100644 .github/workflows/validate_markdown_lint.jsonc diff --git a/.github/workflows/validate_markdown.yaml b/.github/workflows/validate_markdown.yaml index c47b517e3d..324bbb73f3 100644 --- a/.github/workflows/validate_markdown.yaml +++ b/.github/workflows/validate_markdown.yaml @@ -2,25 +2,15 @@ name: Markdown validation on: pull_request: - types: [opened, reopened, synchronize] -# TODO run only on md file changes or changes to this file + types: + - opened + - reopened + - synchronize + paths: + - .github/workflows/validate_markdown.yaml + - "**.md" jobs: markdown_validation: name: Markdown validation - runs-on: ubuntu-latest - steps: - - name: Check out code - uses: actions/checkout@v2 - - - name: Check syntax - uses: avto-dev/markdown-lint@v1.5.0 - with: - config: '.github/workflows/validate_markdown_lint.jsonc' - args: '**.md' - # ignore: './one_file.md ./another_file.md' # multiple files must be separated with single space - - - name: Check dead links - uses: gaurav-nelson/github-action-markdown-link-check@1.0.15 - with: - config-file: '.github/workflows/validate_markdown_links.json' + uses: uc-cdis/.github/.github/workflows/validate_markdown.yaml@feat/lint-md diff --git a/.github/workflows/validate_markdown_links.json b/.github/workflows/validate_markdown_links.json deleted file mode 100644 index af6906700e..0000000000 --- a/.github/workflows/validate_markdown_links.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "ignorePatterns": [ - { - "description": "Ignore anchor links that currently cannot be resolved. See https://github.com/tcort/markdown-link-check/issues/225", - "pattern": "^#" - } - ], - "aliveStatusCodes": [200, 203, 206] -} diff --git a/.github/workflows/validate_markdown_lint.jsonc b/.github/workflows/validate_markdown_lint.jsonc deleted file mode 100644 index 0d9a2c5d51..0000000000 --- a/.github/workflows/validate_markdown_lint.jsonc +++ /dev/null @@ -1,12 +0,0 @@ -{ - "default": true, // Default state for all rules - - "blanks-around-fences": false, - "blanks-around-lists": false, - "code-block-style": false, - "fenced-code-language": false, - "line-length": false, - "no-bare-urls": false, - "no-multiple-blanks": false, - "ul-style": false -}