diff --git a/.github/workflows/link-validator.yml b/.github/workflows/link-validator.yml index a46d1127a..25a184d26 100644 --- a/.github/workflows/link-validator.yml +++ b/.github/workflows/link-validator.yml @@ -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 @@ -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'