All Projects → Gamesight → slack-workflow-status

Gamesight / slack-workflow-status

Licence: MIT license
Github action for sending workflow run results to Slack

Programming Languages

typescript
32286 projects

Projects that are alternatives of or similar to slack-workflow-status

jacoco-report
Github action that publishes the JaCoCo report as a comment in the Pull Request
Stars: ✭ 31 (-50.79%)
Mutual labels:  reporting, actions
python-actions-alpha-archived
Please note that this was for the *alpha* version of GitHub Actions for Python.
Stars: ✭ 15 (-76.19%)
Mutual labels:  actions
Samples-JS-PHP
JavaScript and PHP samples for Stimulsoft Reports.PHP reporting tool.
Stars: ✭ 17 (-73.02%)
Mutual labels:  reporting
chrome-extension-upload
upload & publish extensions to the Chrome Web Store.
Stars: ✭ 35 (-44.44%)
Mutual labels:  actions
flutter
A Github action for the flutter CLI
Stars: ✭ 40 (-36.51%)
Mutual labels:  actions
testng-plugin-plugin
TestNG Reports Plugin for Jenkins
Stars: ✭ 56 (-11.11%)
Mutual labels:  reporting
actions-deploy-gist
📌 Deploy file to Github Gist
Stars: ✭ 26 (-58.73%)
Mutual labels:  actions
changed-files
Github action to retrieve all (added, copied, modified, deleted, renamed, type changed, unmerged, unknown) files and directories.
Stars: ✭ 733 (+1063.49%)
Mutual labels:  actions
chrome-addon
☁ GitHub action to upload addon to Chrome
Stars: ✭ 53 (-15.87%)
Mutual labels:  actions
actions
Set of actions for implementing CI/CD with werf and GitHub Actions
Stars: ✭ 67 (+6.35%)
Mutual labels:  actions
frontend-developer-coding-challenge
Are your looking for a remote developer job? Solve this frontend developer challenge and show us what you can do and what you are an expert at!
Stars: ✭ 112 (+77.78%)
Mutual labels:  job
together
Group things together!
Stars: ✭ 35 (-44.44%)
Mutual labels:  job
action.playbook
Github Action for running Ansible Playbooks.
Stars: ✭ 26 (-58.73%)
Mutual labels:  actions
github-action-wpe-site-deploy
A GitHub Action to deploy code directly to WP Engine.
Stars: ✭ 116 (+84.13%)
Mutual labels:  actions
actions
A set of GitHub actions for Infracost. See cloud cost estimates for Terraform in pull requests. 💰📉 Love your cloud bill!
Stars: ✭ 147 (+133.33%)
Mutual labels:  actions
Akka.Quartz.Actor
Quartz scheduling actor
Stars: ✭ 50 (-20.63%)
Mutual labels:  job
PRISMA2020
Produce PRISMA-2020 compliant flow diagrams
Stars: ✭ 58 (-7.94%)
Mutual labels:  reporting
great expectations action
A GitHub Action that makes it easy to use Great Expectations to validate your data pipelines in your CI workflows.
Stars: ✭ 66 (+4.76%)
Mutual labels:  actions
gh-action-get-changed-files
GitHub Action that saves changed files as JSON for use by other actions.
Stars: ✭ 82 (+30.16%)
Mutual labels:  actions
public-ip
Queries GitHub actions runner's public IP address
Stars: ✭ 64 (+1.59%)
Mutual labels:  actions

Slack Workflow Status

This action will post workflow status notifications into your Slack channel. The notification includes the name of the Actor, Event, Branch, Workflow Name, Status and Run Durations. This action can optionally include the status and duration of individual jobs in a workflow to quickly help you identify where failures and slowdowns occur.

Action Inputs

Name Required Description
slack_webhook_url required Create a Slack Webhook URL using the Incoming Webhooks App. It is recommended that you create a new secret on your repo SLACK_WEBHOOK_URL for holding this value, and passing it to the action with ${{secrets.SLACK_WEBHOOK_URL}}.
repo_token required A token is automatically available in your workflow secrets var. ${{secrets.GITHUB_TOKEN}}. You can optionally send an alternative self-generated token.
include_jobs optional When set to true, include individual job status and durations in the slack notification. When false only the event status and workflow status lines are included. When set to on-failure — individual job status is reported only if workflow failed. Default is true.
include_commit_message optional When set to true, include the workflow head commit message title in the slack notification. Default is false.
channel optional Accepts a Slack channel name where you would like the notifications to appear. Overrides the default channel created with your webhook.
name optional Allows you to provide a name for the slack bot user posting the notifications. Overrides the default name created with your webhook.
icon_emoji optional Allows you to provide an emoji as the slack bot user image when posting notifications. Overrides the default image created with your webhook. Emoji Code Cheat Sheet
icon_url optional Allows you to provide a URL for an image to use as the slack bot user image when posting notifications. Overrides the default image created with your webhook.

Usage

To use this action properly, you should create a new job at the end of your workflow that needs all other jobs in the workflow. This ensures that this action is only run once all jobs in your workflow are complete.

This action requires read permission of actions scope. You should assign a job level actions permission if workflow level actions permission is set none.

name: World Greeter
on:
  push:
    branches: [ master, staging ]
jobs:
  job-1:
    runs-on: ubuntu-latest
    steps:
      - name: Say Hello
        run: echo "Hello"
  job-2:
    runs-on: ubuntu-latest
    steps:
      - name: Say World
        run: echo "World"
  slack-workflow-status:
    if: always()
    name: Post Workflow Status To Slack
    needs:
      - job-1
      - job-2
    runs-on: ubuntu-latest
    # actions.read permission is required.
    permissions:
      actions: 'read'
    steps:
      - name: Slack Workflow Notification
        uses: Gamesight/slack-workflow-status@master
        with:
          # Required Input
          repo_token: ${{secrets.GITHUB_TOKEN}}
          slack_webhook_url: ${{secrets.SLACK_WEBHOOK_URL}}
          # Optional Input
          channel: '#anthony-test-channel'
          name: 'Anthony Workflow Bot'
          icon_emoji: ':poop:'
          icon_url: 'https://avatars0.githubusercontent.com/u/1701160?s=96&v=4'

This action can also be used for Pull Request workflows and will include pull request information in the notification.

developed and maintained by: gamesight.io

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].