Skip to content

notifoxhq/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

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Notifox GitHub Action

Send alerts to Notifox from your GitHub Actions workflows—SMS or email to a specific audience with a single step.

Usage

Basic

- uses: notifoxhq/action@v1
  with:
    audience: ops
    channel: email
    message: "Deploy to production completed successfully"
  env:
    NOTIFOX_API_KEY: ${{ secrets.NOTIFOX_API_KEY }}

With API key as input

- uses: notifoxhq/action@v1
  with:
    api_key: ${{ secrets.NOTIFOX_API_KEY }}
    audience: oncall
    channel: sms
    message: "Build failed on ${{ github.ref_name }}"

On failure

- name: Deploy
  run: ./deploy.sh
- name: Notify on failure
  if: failure()
  uses: notifoxhq/action@v1
  with:
    audience: ops
    channel: sms
    message: "Deploy failed — check the workflow run"
  env:
    NOTIFOX_API_KEY: ${{ secrets.NOTIFOX_API_KEY }}

Inputs

Input Required Description
api_key No Notifox API key. If omitted, NOTIFOX_API_KEY env (e.g. from secrets) is used.
audience Yes Audience to send to (e.g. ops, me, oncall). Configure in the Notifox console.
channel Yes sms or email.
message Yes Alert body to send.

Outputs

Output Description
message_id Set when the API returns a message ID.

Setup

  1. Create a Notifox account and an API key in the console.
  2. Add a repository secret (e.g. NOTIFOX_API_KEY) with that key.
  3. Configure audiences and channels (SMS/email) in the Notifox console.

API

This action calls the Notifox HTTP API: POST https://api.notifox.com/alert with Bearer auth and JSON body { audience, alert, channel }.

About

Notifox for Github actions

Resources

Stars

Watchers

Forks

Packages

No packages published