Skip to content

Add email notification on workflow failure#140

Open
dkayiwa wants to merge 1 commit intomainfrom
add-failure-notifications
Open

Add email notification on workflow failure#140
dkayiwa wants to merge 1 commit intomainfrom
add-failure-notifications

Conversation

@dkayiwa
Copy link
Member

@dkayiwa dkayiwa commented Feb 27, 2026

The Bamboo spec notified dev-refapp@openmrs.org on plan completion and committers on failure. This adds a notify job that emails dev-refapp@openmrs.org when any job fails, matching the Bamboo behavior.

Uses dawidd6/action-send-mail@v3 for sending email.

Required Secrets

Add these in Settings → Secrets and variables → Actions:

Secret Description Example
SMTP_SERVER SMTP server address smtp.gmail.com
SMTP_PORT SMTP server port 465
SMTP_USERNAME SMTP login username ci@openmrs.org
SMTP_PASSWORD SMTP login password (app password)

Note: If SMTP secrets are not configured, the notify job will fail silently without affecting the build/deploy/release jobs.

The Bamboo spec notified dev-refapp@openmrs.org on plan completion
and committers on failure. This adds a notify job that emails
dev-refapp@openmrs.org when any job fails.

Requires SMTP secrets: SMTP_SERVER, SMTP_PORT, SMTP_USERNAME,
SMTP_PASSWORD.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
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.

1 participant