Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: update global workflows #55

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions .github/workflows/link-check-cron.yml
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)
17 changes: 17 additions & 0 deletions .github/workflows/link-check-pr.yml
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