Skip to content

Latest commit

 

History

7 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

Codio slack message notification

Posts a message to a Slack incoming webhook, coloured green or red by job status. Composite action: bash + curl + jq, no runtime and no bundled sources, so it is unaffected by Node.js runtime deprecations on the runners.

Usage

See action.yml

steps:

- uses: codio/codio-slack-action@master
  if: always()
  with:
    slack_hook_url: ${{ secrets.SLACK_WEBHOOK_URL }}
    message: "${{ github.workflow }} for ${{ github.repository }} has ${{ job.status }}"
    success: ${{ job.status }}
Input Required Default
slack_hook_url yes Incoming webhook URL
message yes Message text
success no true true or success renders green, anything else red

The step fails if the webhook does not answer 2xx.

License

The scripts and documentation in this project are released under the MIT License

About

Simplified slack notification

Resources

Stars

0 stars

Watchers

9 watching

Forks

Releases

Packages

Used by

Contributors