mirror of
https://github.com/DOI-DO/j40-cejst-2.git
synced 2025-02-23 10:04:18 -08:00
* Run markdown link checker only on markdown changes This makes sure that this action only runs if the pull request is on the main branch and is changing markdown files. Fixes: https://github.com/usds/justice40-tool/issues/1114 * Remove push to main trigger * Ignore eeoc.gov in link checker Sometimes it seems down from the perspective of github actions.
15 lines
504 B
YAML
15 lines
504 B
YAML
name: Check Markdown links
|
|
on:
|
|
pull_request:
|
|
# The branches below must be a subset of the branches above
|
|
branches: [ main ]
|
|
# Run only if the pull request changes a markdown file:
|
|
# https://docs.github.com/en/actions/learn-github-actions/workflow-syntax-for-github-actions#onpushpull_requestpaths
|
|
paths:
|
|
- '**.md'
|
|
jobs:
|
|
markdown-link-check:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- uses: gaurav-nelson/github-action-markdown-link-check@v1
|