Files
CommandForge/.gitea/workflows/notify-ci-failure.yml
T
poli0981andClaude Opus 5.5 aae42f7e2f ci: Discord notifiers through the ops repo's Gitea workflows
announce-release and notify-ci-failure call the ops repo's .gitea reusables at
ops v2026.11.4 (c133a00), with ops_ref at the same commit so the notifier
script matches, and pass only the secrets each one declares instead of
inheriting all of them. notify-ci-failure watches Build, Qodana and Security
(SonarCloud is gone). New: notify-release-pipeline reports every Release run
to DISCORD_RELEASE_PIPELINE_WEBHOOK.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 09:07:59 +07:00

29 lines
999 B
YAML

name: Notify CI Failure
# A failed run of the workflows below on main posts to Discord through the ops repo's
# notify-ci-failure.yml (its script is loaded at `ops_ref`, the same commit as `uses:`). Neither file
# checks out the triggering run's code: they read run metadata only, and the shared workflow passes
# every untrusted field to the notifier through `env:`. Pull-request runs are skipped there (it only
# reports the default branch). Requires the repository secret DISCORD_CI_WEBHOOK.
on:
workflow_run:
workflows: ["Build", "Qodana", "Security"]
types: [completed]
permissions:
contents: read
actions: read
jobs:
notify:
permissions:
contents: read
actions: read
uses: poli0981/.github/.gitea/workflows/notify-ci-failure.yml@c133a00dc7a0bd7bd68253d415758b408d615fa4 # ops v2026.11.4
with:
default_branch: main
ops_ref: c133a00dc7a0bd7bd68253d415758b408d615fa4
secrets:
DISCORD_CI_WEBHOOK: ${{ secrets.DISCORD_CI_WEBHOOK }}