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>
19 lines
476 B
YAML
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
|