Skip to content

[plan] Add deployment_status example workflow for DevOps incident automation #28541

@github-actions

Description

@github-actions

Objective

Add an example agentic workflow that triggers on deployment_status events to automate DevOps incident detection and issue creation.

Context

From discussion #28538 (Agent Persona Exploration 2026-04-26), the agent persona analysis identified that deployment_status and workflow_run triggers are underrepresented in examples, causing the agent to default to suboptimal triggers for DevOps incident automation scenarios.

Approach

  1. Create .github/aw/examples/deployment-incident-monitor.md (or a similar path used for example workflows)
  2. The workflow should:
    • Trigger on deployment_status: types: [error, failure]
    • Use permissions: contents: read, actions: read, deployments: read
    • Use GitHub MCP toolsets: [repos, actions]
    • Use safe-outputs create-issue with expires and skip-if-match for deduplication
    • Include a clear agent prompt asking for root cause analysis
  3. Reference the new workflow from .github/aw/github-agentic-workflows.md or create-agentic-workflow.md as a canonical DevOps example

Files to Create/Modify

  • Create: a deployment-incident-monitor.md example workflow in the appropriate examples directory
  • Update: .github/aw/github-agentic-workflows.md or create-agentic-workflow.md to reference the new example

Acceptance Criteria

  • Example workflow compiles without errors (gh aw compile)
  • Workflow uses deployment_status trigger with error/failure types
  • Safe-outputs includes expires to prevent issue spam
  • Deduplication via skip-if-match is demonstrated
  • Workflow is referenced in the agent instructions or examples guide

Generated by Plan Command for issue #discussion #28538 · ● 233.4K ·

  • expires on Apr 28, 2026, 4:38 AM UTC

Metadata

Metadata

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions