# This workflow is centrally managed in https://github.com/asyncapi/.github/
# Don't make changes to this file in this repo as they will be overwritten with changes made to the same file in above mentioned repo

name: Check Markdown links

on: 
  pull_request_target:
    types: [synchronize, ready_for_review, opened, reopened]
    paths:
      - '**.md'

jobs:
  External-link-validation-on-PR:
    runs-on: ubuntu-latest
    steps:
    - name: Checkout repo
      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
        
        # A configuration file can be included, indicating the properties of the link check action
        # More information can be found here: https://github.com/tcort/markdown-link-check#config-file-format
        # Create mlc_config.json file in the root of the directory
