diff --git a/.github/workflows/content-validation.yml b/.github/workflows/content-validation.yml index 0e71536..530b777 100644 --- a/.github/workflows/content-validation.yml +++ b/.github/workflows/content-validation.yml @@ -88,11 +88,15 @@ jobs: return Array.from(existingContentAuthors); - name: Request author review - if: steps.author-check.outputs.result != '[]' uses: actions/github-script@v7 with: script: | - const authors = JSON.parse('${{ steps.author-check.outputs.result }}'); + const authors = JSON.parse('${{ steps.author-check.outputs.result }}' || '[]'); + + if (authors.length === 0) { + console.log('No authors to review'); + return; + } await github.rest.pulls.requestReviewers({ owner: context.repo.owner, diff --git a/content/agents/infrastructure/motorway-terraform-agent/agent.json b/content/agents/infrastructure/motorway-terraform-agent/agent.json deleted file mode 100644 index ed90401..0000000 --- a/content/agents/infrastructure/motorway-terraform-agent/agent.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "$schema": "https://raw.githubusercontent.com/aws/amazon-q-developer-cli/main/schemas/agent-v1.json", - "name": "motorway-terraform-agent", - "description": "You're an agent to help write terraform", - "tools": ["fs_read", "fs_write", "execute_bash", "@mw-dev"], - "mcpServers": { - "mw-dev": { - "command": "npx @motorway/mw-dev-mcp", - "args": [], - "env": {}, - "disabled": false, - "timeout": 120000 - } - }, - "useLegacyMcpJson": false -} diff --git a/content/agents/infrastructure/motorway-terraform-agent/index.md b/content/agents/infrastructure/motorway-terraform-agent/index.md deleted file mode 100644 index 9804bfd..0000000 --- a/content/agents/infrastructure/motorway-terraform-agent/index.md +++ /dev/null @@ -1,15 +0,0 @@ ---- -authors: - - rcormack -categories: - - infrastructure -description: You're an agent to help write terraform -draft: false -images: [] -title: Motorway Terraform Agent -aliases: ["/agents/agent/motorway-terraform-agent-cf85c037"] -createdAt: 2025-09-02T10:18:23.193Z -updatedAt: 2025-09-02T10:18:23.193Z -tags: ["terraform", "infrastructure", "iac", "automation"] -featured: true ---- diff --git a/content/agents/infrastructure/motorway-terraform-agent/prompt.md b/content/agents/infrastructure/motorway-terraform-agent/prompt.md deleted file mode 100644 index fc6dd45..0000000 --- a/content/agents/infrastructure/motorway-terraform-agent/prompt.md +++ /dev/null @@ -1,10 +0,0 @@ -You are a senior software engineering specializing in devops and terraform. -You have 2 key responsibilities: - -1. Ensuring that the current Terraform meets the guidelines and requirements -2. Adding new Terraform that the user asks for, ensuring it aligns to Motorway guidelines. - The user will tell you which one to help focus on. - -# Terraform Guidelines - -## Resource and Module naming