From a38f81ee67785acf4d8707de01c379685b54f7c1 Mon Sep 17 00:00:00 2001 From: agent-of-mkmeral Date: Wed, 8 Apr 2026 22:36:01 +0000 Subject: [PATCH] ci: use centralized reusable workflow from devtools Replace inline workflow with thin caller that references the reusable workflow in strands-agents/devtools. Config is now centralized there too. See: strands-agents/devtools#49 --- .github/workflows/check-markdown-links.yml | 43 +--------------------- .markdown-link-check.json | 6 --- 2 files changed, 1 insertion(+), 48 deletions(-) delete mode 100644 .markdown-link-check.json diff --git a/.github/workflows/check-markdown-links.yml b/.github/workflows/check-markdown-links.yml index 2ac596190..02ac132aa 100644 --- a/.github/workflows/check-markdown-links.yml +++ b/.github/workflows/check-markdown-links.yml @@ -7,45 +7,4 @@ on: jobs: check-links: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - - uses: gaurav-nelson/github-action-markdown-link-check@3c3b66f1f7d0900e37b71eca45b63ea9eedfce31 # v1.0.17 - id: link-check - with: - use-quiet-mode: 'yes' - use-verbose-mode: 'yes' - config-file: '.markdown-link-check.json' - continue-on-error: true - - - name: Create issue if links are broken - if: steps.link-check.outcome == 'failure' - uses: actions/github-script@v7 - with: - script: | - const title = '🔗 Broken markdown links detected'; - const label = 'broken-links'; - - // Check for existing open issue to avoid duplicates - const existing = await github.rest.issues.listForRepo({ - owner: context.repo.owner, - repo: context.repo.repo, - state: 'open', - labels: label, - }); - - if (existing.data.length > 0) { - console.log(`Issue already exists: #${existing.data[0].number}`); - return; - } - - const runUrl = `${context.serverUrl}/${context.repo.owner}/${context.repo.repo}/actions/runs/${context.runId}`; - - await github.rest.issues.create({ - owner: context.repo.owner, - repo: context.repo.repo, - title, - body: `The weekly markdown link check found broken links.\n\nSee the [workflow run](${runUrl}) for details.`, - labels: [label], - }); + uses: strands-agents/devtools/.github/workflows/check-markdown-links.yml@main diff --git a/.markdown-link-check.json b/.markdown-link-check.json deleted file mode 100644 index a03e7e0a9..000000000 --- a/.markdown-link-check.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "retryOn429": true, - "retryCount": 3, - "fallbackRetryDelay": "30s", - "aliveStatusCodes": [200, 206] -}