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

20 lines
499 B
YAML

name: Notify Release Pipeline
on:
workflow_run:
# Release-related workflows only. Renaming any of these → update list.
workflows:
- "Release Desktop App"
- "Announce Release to Discord"
types: [completed]
permissions:
contents: read
actions: read
jobs:
notify:
if: contains(fromJSON('["success","failure","cancelled"]'), github.event.workflow_run.conclusion)
uses: poli0981/.github/.github/workflows/notify-release-pipeline.yml@main
secrets: inherit