-
-
Notifications
You must be signed in to change notification settings - Fork 239
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
808783b
commit c364437
Showing
2 changed files
with
46 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: Check Markdown links (Weekly) | ||
|
||
on: | ||
workflow_dispatch: | ||
schedule: | ||
# At 00:00 UTC on every Monday | ||
- cron: '0 0 * * 0' | ||
|
||
jobs: | ||
External-link-validation-weekly: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
# Checks the status of hyperlinks in .md files | ||
- name: Check links | ||
uses: gaurav-nelson/github-action-markdown-link-check@v1 | ||
with: | ||
use-quiet-mode: 'yes' | ||
use-verbose-mode: 'yes' | ||
|
||
- name: Report workflow run status to Slack | ||
uses: 8398a7/action-slack@v3 | ||
with: | ||
status: ${{ job.status }} | ||
fields: repo,message,action,eventName,ref,workflow | ||
env: | ||
SLACK_DOCS_CHANNEL: ${{ secrets.SLACK_DOCS_CHANNEL }} | ||
if: failure() # Only, on failure, send a message on the Slack Docs Channel (if there are broken links) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
name: Check Markdown links | ||
|
||
on: | ||
pull_request_target: | ||
types: [synchronize, ready_for_review, opened, reopened] | ||
|
||
jobs: | ||
External-link-validation-on-PR: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Check links | ||
uses: gaurav-nelson/github-action-markdown-link-check@v1 | ||
with: | ||
use-quiet-mode: 'yes' | ||
use-verbose-mode: 'yes' | ||
check-modified-files-only: 'yes' #Only modified files are checked on PRs |