Customized GitHub Action integration with Slack inspired by rtCamp/action-slack-notify
- name: slack-notification-for-failure
uses: codigube/[email protected]
if: failure() || cancelled()
env:
SLACK_COLOR: '#DF5A49'
SLACK_MESSAGE: 'Job ${{ github.job }} failed'
- name: slack-notification-for-success
uses: codigube/[email protected]
if: success()
env:
SLACK_MESSAGE: 'Job ${{ github.job }} succeeded'
For more detailed configuration, please refer to rtCamp/action-slack-notify