Fully detailed GitHub Actions workflow notifications in Slack
on:
pull_request:
jobs:
# run as many jobs as you want
a-job:
runs-on: ubuntu-latest
steps:
# run as many steps as you need
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- run: npm install
- run: npm test
# include one last job
slack:
if: ${{ always() }} # ensure this job always runs
needs: [ a-job, ... ] # indicate which jobs you want to wait for
runs-on: ubuntu-latest
steps:
- uses: ahmadnassri/action-slack-workflow-notifications@v1
with:
slack-webhook: https://hooks.slack.com/services/...
ignore-jobs: slack
ignore-steps: actions/checkout@v2
input | required | default | description |
---|---|---|---|
slack-webhook |
✔ | - |
A Slack Webhook URL |
github-token |
❌ | github.token |
The GitHub token used to update the pull-request |
ignore-jobs |
❌ | |
Comma separated list of job names to ignore |
ignore-steps |
❌ | Set up job, Complete job |
Comma separated list of step names to ignore |
Author: Ahmad Nassri • Twitter: @AhmadNassri