2026-04-14 15:34:42 +00:00
|
|
|
when:
|
|
|
|
|
event: push
|
|
|
|
|
branch: master
|
|
|
|
|
path:
|
|
|
|
|
include:
|
|
|
|
|
- 'docs/post-mortems/*.md'
|
|
|
|
|
exclude:
|
|
|
|
|
- '.woodpecker/**'
|
|
|
|
|
|
|
|
|
|
steps:
|
2026-04-14 15:55:12 +00:00
|
|
|
- name: parse-and-implement
|
2026-04-14 15:34:42 +00:00
|
|
|
image: python:3.12-alpine
|
|
|
|
|
commands:
|
2026-04-14 15:55:12 +00:00
|
|
|
- apk add --no-cache jq curl git openssh-client
|
2026-04-14 16:46:42 +00:00
|
|
|
- sh scripts/postmortem-pipeline.sh
|
2026-04-14 15:34:42 +00:00
|
|
|
|
|
|
|
|
- name: notify-slack
|
|
|
|
|
image: alpine
|
2026-04-14 16:47:17 +00:00
|
|
|
environment:
|
|
|
|
|
SLACK_WEBHOOK:
|
|
|
|
|
from_secret: slack_webhook
|
2026-04-14 15:34:42 +00:00
|
|
|
commands:
|
2026-04-14 16:46:42 +00:00
|
|
|
- apk add --no-cache curl
|
|
|
|
|
- "curl -sf -X POST https://hooks.slack.com/services/$SLACK_WEBHOOK -H 'Content-Type: application/json' -d '{\"text\": \"Post-mortem TODO pipeline completed\"}' || true"
|
2026-04-14 15:34:42 +00:00
|
|
|
when:
|
|
|
|
|
- status: [success, failure]
|