Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 18 additions & 7 deletions .github/workflows/slack_notify.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,24 @@
---
name: Slack Notifications
on:
check_run:
types: [rerequested, completed]
check_suite:
types: [completed]

permissions:
actions: read
contents: read
checks: read
id-token: write

jobs:
slack-notifications:
permissions:
id-token: write # to authenticate via OIDC
uses: SonarSource/gh-action_build-notify/.github/workflows/main.yaml@v1
with:
slackChannel: squad-jvm-notifs
if: >-
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-')
runs-on: ubuntu-latest
steps:
- name: Send Slack Notification
env:
GITHUB_TOKEN: ${{ github.token }}
uses: SonarSource/gh-action_slack-notify@v1
with:
slackChannel: squad-jvm-notifs