From 4055b4970f46b1efed70c2289684af4486f8f429 Mon Sep 17 00:00:00 2001 From: phenix3443 Date: Wed, 20 Mar 2024 22:49:27 +0800 Subject: [PATCH 1/3] feat: check link --- .github/workflows/markdown-links.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/markdown-links.yml diff --git a/.github/workflows/markdown-links.yml b/.github/workflows/markdown-links.yml new file mode 100644 index 000000000..3bc4e4f03 --- /dev/null +++ b/.github/workflows/markdown-links.yml @@ -0,0 +1,21 @@ +name: Check Markdown links +on: + pull_request: + + +jobs: + markdown-link-check: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Link Checker + id: lychee + uses: lycheeverse/lychee-action@v1.9.0 + + - name: Create Issue From File + if: env.lychee_exit_code != 0 + uses: peter-evans/create-issue-from-file@v4 + with: + title: Link Checker Report + content-filepath: ./lychee/out.md + labels: report, automated issue \ No newline at end of file From 95de0b0f316db9237e722483b5b812f912d320f3 Mon Sep 17 00:00:00 2001 From: phenix3443 Date: Wed, 20 Mar 2024 23:13:40 +0800 Subject: [PATCH 2/3] feat: start by manual --- .github/workflows/markdown-links.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/markdown-links.yml b/.github/workflows/markdown-links.yml index 3bc4e4f03..0c6d5079b 100644 --- a/.github/workflows/markdown-links.yml +++ b/.github/workflows/markdown-links.yml @@ -1,6 +1,6 @@ name: Check Markdown links on: - pull_request: + workflow_dispatch: jobs: From 8e073cda65497c8044eceb2226e0dca8cce4f419 Mon Sep 17 00:00:00 2001 From: phenix3443 Date: Thu, 21 Mar 2024 15:05:49 +0800 Subject: [PATCH 3/3] feat: add ignore file --- .lycheeignore | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 .lycheeignore diff --git a/.lycheeignore b/.lycheeignore new file mode 100644 index 000000000..d22e5a7ba --- /dev/null +++ b/.lycheeignore @@ -0,0 +1,2 @@ +https://sepolia.infura.io/v3 +http://127.0.0.1 \ No newline at end of file