when: event: push branch: master path: include: - 'docs/post-mortems/*.md' exclude: - '.woodpecker/**' clone: git: image: woodpeckerci/plugin-git settings: depth: 5 steps: - name: parse-and-implement image: python:3.12-alpine commands: - apk add --no-cache jq curl git openssh-client - sh scripts/postmortem-pipeline.sh - name: notify-slack image: alpine environment: SLACK_WEBHOOK: from_secret: slack_webhook commands: - 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" when: - status: [success, failure]