Skip to content

Commit aa51f25

Browse files
authored
SCANPY-188 Enable slack notifications for build failure (#206)
1 parent 74465c7 commit aa51f25

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

.github/workflows/SlackNotify.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
---
2+
name: Slack Notifications
3+
on:
4+
check_suite:
5+
types: [completed]
6+
7+
permissions:
8+
contents: read
9+
id-token: write
10+
checks: read
11+
jobs:
12+
notify:
13+
if: >-
14+
contains(fromJSON('["main", "master"]'), github.event.check_suite.head_branch) || startsWith(github.event.check_suite.head_branch, 'dogfood-') || startsWith(github.event.check_suite.head_branch, 'branch-')
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: Send Slack Notification
18+
env:
19+
GITHUB_TOKEN: ${{ github.token }}
20+
uses: SonarSource/[email protected]
21+
with:
22+
slackChannel: squad-python

0 commit comments

Comments
 (0)