Purpose: send notifications on job status, initially via Slack.
Required Job status.
Required Slack token used to send message.
Required Slack channel id.
There are no outputs.
build-dev:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Send notification
if: always()
uses: shiftgig/action-notify-status@v1
with:
job-status: ${{ job.status }}
slack-token: ${{ secrets.SLACK_TOKEN }}
channel-id: CXXX000
You will need a Slack app, follow these steps.