Skip to content

Commit

Permalink
Link check all markdown files when running on schedule (#659)
Browse files Browse the repository at this point in the history
... or on request

Signed-off-by: Martin Morgenstern <[email protected]>
  • Loading branch information
martinmo authored Jul 18, 2024
1 parent dcfe73f commit e9c74a9
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/link-validator.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
name: Check links for modified files
name: Check links in Markdown files

on:
"on":
workflow_dispatch:
schedule:
- cron: "0 0 * * *"
push:
branches:
- main
pull_request: # Add this section
pull_request:
branches:
- main

Expand All @@ -20,6 +20,7 @@ jobs:
with:
use-quiet-mode: 'yes'
use-verbose-mode: 'yes'
check-modified-files-only: 'yes'
# https://github.com/orgs/community/discussions/26738#discussioncomment-3253176
check-modified-files-only: ${{ contains(fromJSON('["push", "pull_request"]'), github.event_name) && 'yes' || 'no' }}
config-file: 'mlc_config.json'
base-branch: 'main'

0 comments on commit e9c74a9

Please sign in to comment.