Skip to content

Commit

Permalink
Add link checker to compass manager (#56)
Browse files Browse the repository at this point in the history
<!-- Thank you for your contribution. Before you submit the pull
request:
1. Follow contributing guidelines, templates, the recommended Git
workflow, and any related documentation.
2. Read and submit the required Contributor Licence Agreements
(https://github.com/kyma-project/community/blob/main/CONTRIBUTING.md#agreements-and-licenses).
3. Test your changes and attach their results to the pull request.
4. Update the relevant documentation.

If the pull request requires a decision, follow the [decision-making
process](https://github.com/kyma-project/community/blob/main/governance.md)
and replace the PR template with the [decision record
template](https://github.com/kyma-project/community/blob/main/.github/ISSUE_TEMPLATE/decision-record.md).
-->

**Description**

Changes proposed in this pull request:

- Add link checker to compass manager

**Related issue(s)**
Fixes #26 
<!-- If you refer to a particular issue, provide its number. For
example, `Resolves #123`, `Fixes #43`, or `See also #33`. -->
  • Loading branch information
kyma-bot authored Dec 5, 2023
2 parents 2f9ecc2 + 82719c1 commit 8978500
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/daily-markdown-link-check.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Daily Markdown Link Check
run-name: ${{github.event.pull_request.title}}
on:
schedule:
# Run everyday at 5:00 AM
- cron: "0 5 * * *"
jobs:
markdown-link-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: gaurav-nelson/github-action-markdown-link-check@v1
with:
use-quiet-mode: 'yes'
use-verbose-mode: 'yes'
config-file: '.mlc.config.json'
folder-path: '.'
max-depth: -1
17 changes: 17 additions & 0 deletions .github/workflows/pr-markdown-link-check.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: PR Markdown Link Check
run-name: ${{github.event.pull_request.title}}
on: [ pull_request ]
jobs:
markdown-link-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: gaurav-nelson/github-action-markdown-link-check@v1
with:
use-quiet-mode: 'yes'
use-verbose-mode: 'yes'
config-file: '.mlc.config.json'
folder-path: '.'
max-depth: -1
check-modified-files-only: 'yes'
base-branch: '${{ github.base_ref }}'
12 changes: 12 additions & 0 deletions mlc.config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"replacementPatterns": [
{
"_comment": "a replacement rule for all the in-repository references",
"pattern": "^/",
"replacement": "{{BASEURL}}/"
}
],
"timeout": "20s",
"retryCount": 5,
"fallbackRetryDelay": "30s"
}

0 comments on commit 8978500

Please sign in to comment.