Skip to content

Commit e7a50ee

Browse files
Wohopssonartech
authored andcommitted
SONARPY-2990 Add notifications for completed jobs (#309)
GitOrigin-RevId: bf14dced0bd8a24f1a4ad1ddd8a654caeefd3e6c
1 parent 65a587a commit e7a50ee

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/gh-action_slack-notify@1.0.1
21+
with:
22+
slackChannel: squad-python

0 commit comments

Comments
 (0)