Skip to content

Commit

Permalink
ci: add slack-send.yaml (#544)
Browse files Browse the repository at this point in the history
Signed-off-by: Kenji Miyake <kenji.miyake@tier4.jp>

Signed-off-by: Kenji Miyake <kenji.miyake@tier4.jp>
  • Loading branch information
kenji-miyake authored Sep 16, 2022
1 parent 434a9b7 commit 28b5461
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/slack-send.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: slack-send
on:
workflow_run:
workflows:
- build-main
- build-humble
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": "${{ context.payload.workflow_run.html_url }}"
}
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WORKFLOW_WEBHOOK_URL }}

0 comments on commit 28b5461

Please sign in to comment.