Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ahmadnassri/action-slack-workflow-notifications

Fully detailed GitHub Actions workflow notifications in Slack
https://github.com/ahmadnassri/action-slack-workflow-notifications

action github notifications slack

Last synced: 3 months ago
JSON representation

Fully detailed GitHub Actions workflow notifications in Slack

Awesome Lists containing this project

README

        

# GitHub Action: GitHub Slack Workflow Notifications

Fully detailed GitHub Actions workflow notifications in Slack

[![license][license-img]][license-url]
[![release][release-img]][release-url]
[![super linter][super-linter-img]][super-linter-url]
[![test][test-img]][test-url]
[![semantic][semantic-img]][semantic-url]

![](docs/preview.png)

## Usage

``` yaml
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
```

### Inputs

| input | required | default | description |
|-----------------|----------|----------------------------|-----------------------------------------------------------------|
| `slack-webhook` | ✔ | `-` | A Slack [Webhook URL](https://api.slack.com/messaging/webhooks) |
| `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](https://www.ahmadnassri.com/) •
> Twitter: [@AhmadNassri](https://twitter.com/AhmadNassri)

[license-url]: LICENSE
[license-img]: https://badgen.net/github/license/ahmadnassri/action-slack-workflow-notifications

[release-url]: https://github.com/ahmadnassri/action-slack-workflow-notifications/releases
[release-img]: https://badgen.net/github/release/ahmadnassri/action-slack-workflow-notifications

[super-linter-url]: https://github.com/ahmadnassri/action-slack-workflow-notifications/actions?query=workflow%3Asuper-linter
[super-linter-img]: https://github.com/ahmadnassri/action-slack-workflow-notifications/workflows/super-linter/badge.svg

[test-url]: https://github.com/ahmadnassri/action-slack-workflow-notifications/actions?query=workflow%3Atest
[test-img]: https://github.com/ahmadnassri/action-slack-workflow-notifications/workflows/test/badge.svg

[semantic-url]: https://github.com/ahmadnassri/action-slack-workflow-notifications/actions?query=workflow%3Arelease
[semantic-img]: https://badgen.net/badge/📦/semantically%20released/blue