This action sends a notification when a build starts, finishes, or fails.
All the code is under the src
folder:
cd src
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.