This action will alert your slack channel/PM with repo/branch/runner log and mention you.
First of all you need to create your slack app with these items and use them in with
section of the action.
Go to your slack app (Your Apps->Features->Incoming Webhooks) and add new webhook URL for your workspace. After you can use this URL in actions.
The action requires an OAuth token token for your slack workspace with users:read.email
(doc) permission.
See action.yml
Basic:
steps:
- uses: actions/checkout@v2
- uses: 7olstoy/slack-notification-action@main
with:
slack-url: ${{ secrets.SLACK_TEST_CHANNEL_URL }}
slack-oauth-token: ${{ secrets.SLACK_BOT_OAUTH_TOKEN }}
Advanced:
jobs:
shellcheck:
name: Lint with Shellcheck
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Run ShellCheck
uses: ludeeus/action-shellcheck@master
with:
format: tty
- uses: 7olstoy/slack-notification-action@main
with:
slack-url: ${{ secrets.SLACK_TEST_CHANNEL_URL }}
slack-oauth-token: ${{ secrets.SLACK_BOT_OAUTH_TOKEN }}
if: failure()
The scripts and documentation in this project are released under the MIT License