Skip to content

Commit

Permalink
ci: add markdown-link-check (autowarefoundation#31)
Browse files Browse the repository at this point in the history
Signed-off-by: Kenji Miyake <[email protected]>
  • Loading branch information
kenji-miyake authored Jan 27, 2022
1 parent dd8b7f2 commit 79e4aea
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/pre-commit-optional.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: pre-commit-optional

on:
pull_request:

jobs:
pre-commit-optional:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Run pre-commit
uses: autowarefoundation/autoware-github-actions/pre-commit@tier4/proposal
with:
pre-commit-config: .pre-commit-config-optional.yaml
6 changes: 6 additions & 0 deletions .markdown-link-check.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"aliveStatusCodes": [200, 206, 403],
"ignorePatterns": [],
"retryOn429": true,
"retryCount": 10
}
5 changes: 5 additions & 0 deletions .pre-commit-config-optional.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
repos:
- repo: https://github.com/tcort/markdown-link-check
rev: v3.9.2
hooks:
- id: markdown-link-check

0 comments on commit 79e4aea

Please sign in to comment.