Files
poli0981andClaude Opus 4.7 4540e1eac4 ci: scope notify wrappers to specific source workflows (#60)
Replace `workflows: ["*"]` catch-all with explicit lists per wrapper so
wrappers only trigger on relevant completions instead of running and being
filtered out at the reusable level (95-100% skipped runs previously).

Add job-level `if:` to short-circuit non-matching conclusions, keeping the
reusable's filter as defense-in-depth. Renaming source workflows now
requires updating these lists — comments warn about the coupling.

Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-09 19:50:04 +07:00

19 lines
476 B
YAML

name: Notify Deploy Status
on:
workflow_run:
# Only the deploy workflow's name matters here. Renaming "Deploy Web
# (GitHub Pages)" → update this list.
workflows: ["Deploy Web (GitHub Pages)"]
types: [completed]
permissions:
contents: read
actions: read
jobs:
notify:
if: contains(fromJSON('["success","failure"]'), github.event.workflow_run.conclusion)
uses: poli0981/.github/.github/workflows/notify-deploy.yml@main
secrets: inherit