diff --git a/.github/workflows/SlackNotify.yml b/.github/workflows/SlackNotify.yml new file mode 100644 index 00000000..9a75ee67 --- /dev/null +++ b/.github/workflows/SlackNotify.yml @@ -0,0 +1,22 @@ +--- +name: Slack Notifications +on: + check_suite: + types: [completed] + +permissions: + contents: read + id-token: write + checks: read +jobs: + notify: + 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@1.0.1 + with: + slackChannel: squad-python