Skip to content

SWE-agent takes a GitHub issue and tries to automatically fix it, using your LM of choice. It can also be employed for offensive cybersecurity or competitive coding challenges. [NeurIPS 2024]

CI: Replace deprecated markdown-link-check with maintained version (#1252)

Bala8803af2a8c2b
diff --git a/.github/workflows/check-links-periodic.yaml b/.github/workflows/check-links-periodic.yaml
new file mode 100644
index 00000000..26f8c3d0
--- /dev/null
+++ b/.github/workflows/check-links-periodic.yaml
@@ -0,0 +1,19 @@
+name: Check Markdown links
+
+on:
+ workflow_dispatch:
+ push:
+ branches:
+ - main
+ schedule:
+ - cron: "0 0 1 * *"
+
+jobs:
+ markdown-link-check:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v4
+ - uses: tcort/github-action-markdown-link-check@v1
+ with:
+ use-quiet-mode: 'yes'
+ use-verbose-mode: 'yes'
diff --git a/.github/workflows/check-links-pr.yaml b/.github/workflows/check-links-pr.yaml
new file mode 100644
index 00000000..e7af798c
--- /dev/null
+++ b/.github/workflows/check-links-pr.yaml
@@ -0,0 +1,13 @@
+on: [pull_request]
+name: Check Markdown links in modified files
+jobs:
+ markdown-link-check:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v4
+ - uses: tcort/github-action-markdown-link-check@v1
+ with:
+ use-quiet-mode: 'yes'
+ use-verbose-mode: 'yes'
+ check-modified-files-only: 'yes'
+ base-branch: 'main'
diff --git a/.github/workflows/check-links.yaml b/.github/workflows/check-links.yaml
deleted file mode 100644
index 9588b709..00000000
--- a/.github/workflows/check-links.yaml
+++ /dev/null
@@ -1,15 +0,0 @@
-name: Check Markdown links
-
-on:
- workflow_dispatch:
- push:
- pull_request:
- schedule:
- - cron: "0 0 1 * *"
-
-jobs:
- markdown-link-check:
- runs-on: ubuntu-latest
- steps:
- - uses: actions/checkout@master
- - uses: gaurav-nelson/github-action-markdown-link-check@v1