From 69c3d39f48e10a65d9360ac74e3b237335ce802a Mon Sep 17 00:00:00 2001 From: David Wertenteil Date: Tue, 28 May 2024 22:43:48 +0300 Subject: [PATCH 1/3] Adding check URLs GH action --- .github/workflows/url_checker.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/url_checker.yml diff --git a/.github/workflows/url_checker.yml b/.github/workflows/url_checker.yml new file mode 100644 index 000000000..01e95aaa3 --- /dev/null +++ b/.github/workflows/url_checker.yml @@ -0,0 +1,27 @@ +name: Check URLs validity + +on: + pull_request: + schedule: + - cron: "0 0 * * *" + +jobs: + run: + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v3 + - name: Run URLChecker + uses: urlstechie/urlchecker-action@0.0.34 + with: + file_types: .md + force_pass: true + save: results.csv + - name: Check that results exist + run: cat results.csv + - name: Upload check results + if: success() + uses: actions/upload-artifact@v3 + with: + name: urlchecker-results + path: results.csv \ No newline at end of file From 7af76e487135a27756ce24ead001e964ae01b289 Mon Sep 17 00:00:00 2001 From: David Wertenteil Date: Tue, 28 May 2024 22:48:54 +0300 Subject: [PATCH 2/3] Testing GH action --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 6ebccdc7d..73d289f12 100644 --- a/README.md +++ b/README.md @@ -347,3 +347,5 @@ Plugins: Each plugin comprises a Go shim, plus a remote agent microservice runti └───────────────┘ * Plugins integrate by returning their config structure for unmarshaling (JSON tags) ``` + +Testing action: https://broken/url \ No newline at end of file From a98fcc0cf822e30fa0ca983fdc899afcca8be54b Mon Sep 17 00:00:00 2001 From: David Wertenteil Date: Tue, 28 May 2024 23:00:00 +0300 Subject: [PATCH 3/3] excluding some patterns --- .github/workflows/url_checker.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/url_checker.yml b/.github/workflows/url_checker.yml index 01e95aaa3..76ad3c5f6 100644 --- a/.github/workflows/url_checker.yml +++ b/.github/workflows/url_checker.yml @@ -17,6 +17,7 @@ jobs: file_types: .md force_pass: true save: results.csv + exclude_patterns: 127.0.0.1,localhost,ipfs_,ca_org,ethconnect_,dataexchange_ - name: Check that results exist run: cat results.csv - name: Upload check results