Skip to content

ArtemySinitsa/action-slack-workflow-notifications

 
 

Repository files navigation

GitHub Action: GitHub Slack Workflow Notifications

Fully detailed GitHub Actions workflow notifications in Slack

license release super linter test semantic

Usage

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

About

Fully detailed GitHub Actions workflow notifications in Slack

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 97.2%
  • Dockerfile 2.8%