Skip to content

Commit

Permalink
reusable wf
Browse files Browse the repository at this point in the history
  • Loading branch information
paulineribeyre committed Oct 20, 2023
1 parent 2e25cb2 commit ff78c34
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 39 deletions.
26 changes: 8 additions & 18 deletions .github/workflows/validate_markdown.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
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/[email protected]
with:
config-file: '.github/workflows/validate_markdown_links.json'
uses: uc-cdis/.github/.github/workflows/validate_markdown.yaml@feat/lint-md
9 changes: 0 additions & 9 deletions .github/workflows/validate_markdown_links.json

This file was deleted.

12 changes: 0 additions & 12 deletions .github/workflows/validate_markdown_lint.jsonc

This file was deleted.

0 comments on commit ff78c34

Please sign in to comment.