Skip to content

slack-send

slack-send #4971

Workflow file for this run

name: slack-send
on:
workflow_run:
workflows:
- build-and-test
types:
- completed
jobs:
on-failure:
if: ${{ github.event.workflow_run.conclusion == 'failure' }}
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v3
- name: Send to Slack workflow
uses: slackapi/slack-github-action@v1
with:
payload: |
{
"workflow-url": "${{ github.event.workflow_run.html_url }}"
}
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WORKFLOW_WEBHOOK_URL }}