From f43095a5a3119e70edf5fb58f9cdd2c3eabf7f3d Mon Sep 17 00:00:00 2001 From: Mauran Muthiah Date: Tue, 12 Dec 2023 12:00:56 +0100 Subject: [PATCH] Updated CI rules --- .github/markdown-link-check-config.json | 13 +++++++++++++ .github/{workflows => }/mlc_config.json | 2 +- .github/workflows/blank.yml | 17 ----------------- .github/workflows/markdown-link-checker.yml | 19 +++++++++++++++++++ 4 files changed, 33 insertions(+), 18 deletions(-) create mode 100644 .github/markdown-link-check-config.json rename .github/{workflows => }/mlc_config.json (55%) delete mode 100644 .github/workflows/blank.yml create mode 100644 .github/workflows/markdown-link-checker.yml diff --git a/.github/markdown-link-check-config.json b/.github/markdown-link-check-config.json new file mode 100644 index 0000000..8aa6954 --- /dev/null +++ b/.github/markdown-link-check-config.json @@ -0,0 +1,13 @@ +{ + "timeout": 60, + "aliveStatusCodes": [ + 200, + 201, + 202, + 403 + ], + "retryOn429": true, + "retryCount": 3, + "fallbackRetryDelay": "5s", + "maxConcurrentRequests": 100 +} \ No newline at end of file diff --git a/.github/workflows/mlc_config.json b/.github/mlc_config.json similarity index 55% rename from .github/workflows/mlc_config.json rename to .github/mlc_config.json index 5e62007..37f81d1 100644 --- a/.github/workflows/mlc_config.json +++ b/.github/mlc_config.json @@ -1,5 +1,5 @@ { - "http-status-ignore": ["429", "500", "503"], + "http-status-ignore": ["429", "500", "503", "403"], "ignorePatterns": [ { "pattern": "^http://ignored" } ] diff --git a/.github/workflows/blank.yml b/.github/workflows/blank.yml deleted file mode 100644 index 7d7616c..0000000 --- a/.github/workflows/blank.yml +++ /dev/null @@ -1,17 +0,0 @@ -name: CI -on: - schedule: - # Run everyday at 9:00 AM - - cron: "0 9 * * *" - push: - branches: [ master ] - pull_request: - branches: [ master ] - workflow_dispatch: - -jobs: - markdown-link-check: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@master - - uses: gaurav-nelson/github-action-markdown-link-check@v1 diff --git a/.github/workflows/markdown-link-checker.yml b/.github/workflows/markdown-link-checker.yml new file mode 100644 index 0000000..3a3c4cd --- /dev/null +++ b/.github/workflows/markdown-link-checker.yml @@ -0,0 +1,19 @@ +name: Check Markdown Links +on: + schedule: + - cron: '0 0 * * *' # Runs at midnight every day + +jobs: + markdown-link-check: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v2 + + - name: Check for dead links in Markdown files + uses: gaurav-nelson/github-action-markdown-link-check@v1 + with: + use-quiet-mode: 'yes' + use-verbose-mode: 'no' + config-file: '.github/markdown-link-check-config.json'