/pipeline-health

An action to send health status of pipelines in current repository.

Primary LanguagePowerShellMIT LicenseMIT

Pipeline health check to Slack

Description

This action uses a webhook to post Github Actions workflow statuses to a selected Slack Channel.

How to use

  1. Create a workflow in .github/workflows directory. File must have suffix .yml or .yaml.
on:
  schedule:
    - cron: "0 1 * * *"
jobs:
  health-check:
    runs-on: ubuntu-latest
    name: Health check
    steps:
      - uses: equinor/pipeline-health@v1
        with:
          uri: ${{ secrets.WEBHOOKURI }}
  1. Create a Slack app, or use existing, and create webhook. Copy the Uri.

  1. Create secret in the github repository with name WEBHOOKURI (Github Environment secret or Repository secret) and paste the value from last step into the Value field.