Skip to content

Add a workflow that posts failed nightly runs to Google Chat - #70679

Open
charzl wants to merge 4 commits into
saltstack:masterfrom
charzl:ci/notify-google-chat-nightlies
Open

charzl wants to merge 4 commits into
saltstack:masterfrom
charzl:ci/notify-google-chat-nightlies

Conversation

@charzl

@charzl charzl commented Nov 4, 2026

Copy link
Copy Markdown
Collaborator

What does this PR do?

Adds .github/workflows/notify-google-chat.yml. When a listed workflow (Nightly Stress Test for now) ends with failure or timed_out, it posts a message to a Google Chat webhook: workflow, failed jobs and steps, branch, link to the run.

  • The job only runs on saltstack/salt-nightlies (if: github.repository == ...), so it does nothing in this repo. The file lives here because the salt-nightlies mirror sync deletes files that do not exist upstream.
  • The webhook URL is the repository secret GOOGLE_CHAT_WEBHOOK_URL; without it the step is skipped.
  • Adding another workflow to the workflows: list is enough to get notified about it.
  • Run workflow (workflow_dispatch) sends a test message.

What issues does this PR fix or reference?

Fixes #70678

Merge requirements satisfied?

CI workflow only: no docs, tests or changelog entry.

  • Docs
  • Changelog
  • Tests written/updated

Commits signed with GPG?

No

Triggered by workflow_run for the listed workflows (Nightly Stress Test
for now) when they end with failure or timed_out.  The webhook URL is the
GOOGLE_CHAT_WEBHOOK_URL secret.  The job only runs on
saltstack/salt-nightlies, so it is inert here; the file lives in this repo
because the salt-nightlies mirror sync removes files that do not exist
upstream.  Run workflow sends a test message.
The ': ' in the unquoted expression made the line a mapping value, so
actionlint could not parse the file.
$s in the jq filter is a jq variable.  actionlint with shellcheck, as run
in CI, reports it once the file parses.

This branch was previously deployed

1 inactive deployment
ci — 1115d0de Deployed Nov 4, 2026 by charzl via Build Onedir Packages / RPM (x86_64) #28434
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Nightly workflows: send a Google Chat message on failure

2 participants