This action uses a webhook to post Github Actions workflow statuses to a selected Slack Channel.
- 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 }}
- Create a Slack app, or use existing, and create webhook. Copy the Uri.
- Create secret in the github repository with name
WEBHOOKURI
(Github Environment secret or Repository secret) and paste the value from last step into theValue
field.