Skip to content

linchpin/action-slack-notification

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Slack Build Notification

This action sends a notification when a build starts, finishes, or fails.

Developing locally

All the code is under the src folder:

  1. cd src
  2. npm install

After the project is setup you can just run with:

GITHUB_EVENT_PATH="sample-payload.json" node action.js

Note: GITHUB_EVENT_PATH is an environment variable in Actions where the event payload is stored for analysis during execution. For local testing there's a file src/sample-payload.json which stores the sample payload of a push event. If you're planning on creating a workflow that triggers on another type of event, you can just fetch a sample payload and replace the contents of that file.

About

Send a Slack message to a specific channel when a build starts, succeeds or fails

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published