diff --git a/.github/workflows/check_links.yml b/.github/workflows/check_links.yml index c3b2fba07..6bfa190b8 100644 --- a/.github/workflows/check_links.yml +++ b/.github/workflows/check_links.yml @@ -1,35 +1,26 @@ name: Check links on: - push: - schedule: - # Run at 03:07 every Sunday - - cron: "7 3 * * SUN" + pull_request: #Action fires anytime a PR is (re)opened or synchronized + types: + - opened + - reopened + - synchronize + schedule: + # Run every Sunday at 03:07 (AEDT) + # AEDT is UTC+10 --> Sunday at 03:07 AEDT is Saturday at 17:07 UTC + - cron: "7 17 * * SAT" workflow_dispatch: jobs: link-check: - if: ${{ github.event_name != 'schedule' }} runs-on: ubuntu-latest steps: - - uses: actions/checkout@master + - name: Checkout repo + uses: actions/checkout@master - name: Link checker uses: lycheeverse/lychee-action@v1.9.0 with: fail: true args: --config .github/workflows/lychee-config.toml './docs/**/*.md' './docs/**/*.html' - - # scheduled-link-check: - # if: ${{ github.event_name == 'schedule' }} - # runs-on: ubuntu-latest - # steps: - # - uses: actions/checkout@master - # - uses: gaurav-nelson/github-action-markdown-link-check@v1 - # with: - # use-quiet-mode: 'no' - # use-verbose-mode: 'yes' - # config-file: '.github/workflows/mlc_config.json' - # folder-path: 'docs' - # base-branch: 'main' - \ No newline at end of file