Skip to content

A GitHub Action for sending alerts to GoAlert.

License

Notifications You must be signed in to change notification settings

zolsec/goalert-action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GoAlert GitHub Action

goalert-action is a GitHub Action that sends alerts to the GoAlert API.

Usage

Use of the action is easy, see examples below.

Multiline Alert

Sending an alert with details containing newlines.

- name: Send Alert to GoAlert
uses: zolsec/goalert-action@master
with:
  base_url: 'https://goalert.instance'
  token: ${{ secrets.GOALERT_INTEGRATION_TOKEN }}
  summary: 'Alert Summary'
  details: |
    Multiline
    Alert
    Details
  action: 'close'
  dedup: 'alert-dedup'

Alert with retry

Sending an alert reliably courtesy of Wandalen/wretry.action, useful for simpler deployments of GoAlert which aren't highly available.

- name: Send Alert to GoAlert
  uses: Wandalen/wretry.action@master
  with:
    action: zolsec/goalert-action@master
    attempt_limit: 3
    attempt_delay: 10000
    with: |
      base_url: 'https://goalert.instance'
      token: ${{ secrets.GOALERT_INTEGRATION_TOKEN }}
      summary: 'Alert Summary'
      details: |
        Multiline
        Alert
        Details
      dedup: 'alert-dedup'

About

A GitHub Action for sending alerts to GoAlert.

Resources

License

Stars

Watchers

Forks

Packages

No packages published