diff --git a/.github/workflows/link-checker.yml b/.github/workflows/link-checker.yml index 695cf56..8924865 100644 --- a/.github/workflows/link-checker.yml +++ b/.github/workflows/link-checker.yml @@ -1,8 +1,11 @@ name: Markdown link checker -on: [workflow_dispatch] +on: [push,pull_request,workflow_dispatch] jobs: markdown-link-check: runs-on: ubuntu-latest steps: - - uses: actions/checkout@master - - uses: gaurav-nelson/github-action-markdown-link-check@v1 + - uses: actions/checkout@master + - uses: gaurav-nelson/github-action-markdown-link-check@v1 + with: + config-file: '.github/workflows/mlc_config.json' + diff --git a/.github/workflows/mlc_config.json b/.github/workflows/mlc_config.json new file mode 100644 index 0000000..4b12d83 --- /dev/null +++ b/.github/workflows/mlc_config.json @@ -0,0 +1,44 @@ +{ + "ignorePatterns": [ + { + "pattern": "https://adevait.com/android/interview-questions" + }, + { + "pattern": "https://www.fullstack.cafe/blog/docker-interview-questions-and-answers" + }, + { + "pattern": "https://www.fullstack.cafe/blog/5-graphql-interview-questions-you-should-know" + }, + { + "pattern": "https://adevait.com/ios/interview-questions" + }, + { + "pattern": "https://adevait.com/java/interview-questions" + }, + { + "pattern": "https://adevait.com/javascript-developers/interview-questions" + }, + { + "pattern": "https://adevait.com/nodejs/interview-questions" + }, + { + "pattern": "https://adevait.com/php/interview-questions" + }, + { + "pattern": "https://adevait.com/python/interview-questions" + }, + { + "pattern": "https://danielmiessler.com/study/infosec_interview_questions/" + }, + { + "pattern": "https://www.datacamp.com/community/news/top-100-data-science-interview-questions-cc3lts7gj5j" + } + ], + "timeout": "5s", + "retryCount": 3, + "fallbackRetryDelay": "10s", + "aliveStatusCodes": [ + 200, + 206 + ] +}