From 2c2914087998575f5cd844641ab323b3d67864db Mon Sep 17 00:00:00 2001 From: Raheem Amer Date: Thu, 15 Sep 2022 15:35:36 +0200 Subject: [PATCH 1/4] Create checklinks.yml --- .github/workflows/checklinks.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 .github/workflows/checklinks.yml diff --git a/.github/workflows/checklinks.yml b/.github/workflows/checklinks.yml new file mode 100644 index 0000000..39001a6 --- /dev/null +++ b/.github/workflows/checklinks.yml @@ -0,0 +1,13 @@ +name: Check Markdown links + +on: + schedule: + - cron: "0 13 * * 1" + +jobs: + markdown-link-check: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@master + - uses: gaurav-nelson/github-action-markdown-link-check@v1 + continue-on-error: true From ecbc616f5d7208a559a7dc1d8dfd28f6ba66fc3c Mon Sep 17 00:00:00 2001 From: Raheem Amer Date: Thu, 15 Sep 2022 15:42:31 +0200 Subject: [PATCH 2/4] Create mlc_config.json --- mlc_config.json | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 mlc_config.json diff --git a/mlc_config.json b/mlc_config.json new file mode 100644 index 0000000..ad7037a --- /dev/null +++ b/mlc_config.json @@ -0,0 +1,6 @@ +// 429 Too Many Requests +// This is the typical github answer after too much requests, so I would like to ignore this status when it happens. + +{ + "aliveStatusCodes": [429, 200] +} From 613eddad5ec3214927d3c2cc4a9c3d42198f3ed0 Mon Sep 17 00:00:00 2001 From: Raheem Amer Date: Wed, 21 Sep 2022 11:27:49 +0200 Subject: [PATCH 3/4] Fixed few issues ## Changes - From using cron to using push - Changed branch from master to main - Updated the version of the checkout action into the latest version available - Added quiet and verbose mode to offer more detailed info, [Check Custom variables Table](https://github.com/gaurav-nelson/github-action-markdown-link-check#custom-variables) - Added config file path, forgot to add it --- .github/workflows/checklinks.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/checklinks.yml b/.github/workflows/checklinks.yml index 39001a6..54dee6c 100644 --- a/.github/workflows/checklinks.yml +++ b/.github/workflows/checklinks.yml @@ -1,13 +1,16 @@ name: Check Markdown links on: - schedule: - - cron: "0 13 * * 1" + push jobs: markdown-link-check: runs-on: ubuntu-latest steps: - - uses: actions/checkout@master + - uses: actions/checkout@v2.4.2@main - uses: gaurav-nelson/github-action-markdown-link-check@v1 continue-on-error: true + with: + use-quiet-mode: 'yes' + use-verbose-mode: 'yes' + config-file: 'mlc_config.json' From b4503bfdefc224067c140b3f3522ef5a48a08fa6 Mon Sep 17 00:00:00 2001 From: Raheem Amer Date: Wed, 21 Sep 2022 11:36:09 +0200 Subject: [PATCH 4/4] Removed Comments ## Reason - May cause the file to be invalid --- mlc_config.json | 3 --- 1 file changed, 3 deletions(-) diff --git a/mlc_config.json b/mlc_config.json index ad7037a..5e43e05 100644 --- a/mlc_config.json +++ b/mlc_config.json @@ -1,6 +1,3 @@ -// 429 Too Many Requests -// This is the typical github answer after too much requests, so I would like to ignore this status when it happens. - { "aliveStatusCodes": [429, 200] }