Skip to content

Commit

Permalink
Unify Slack notifications with GH action (#231)
Browse files Browse the repository at this point in the history
  • Loading branch information
ADarko22 authored Jun 28, 2024
1 parent 5ca1709 commit f807f9d
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 10 deletions.
11 changes: 1 addition & 10 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
with:
publishToBinaries: true
mavenCentralSync: true
slackChannel: team-lang-java-notifs
slackChannel: squad-jvm-notifs
relocation-pom:
name: Publish relocation POM
runs-on: ubuntu-latest
Expand Down Expand Up @@ -67,12 +67,3 @@ jobs:
env:
OSSRH_USERNAME: ${{ fromJSON(steps.secrets.outputs.vault).ossrh_username }}
OSSRH_PASSWORD: ${{ fromJSON(steps.secrets.outputs.vault).ossrh_password }}
- name: Notify on failure
if: failure()
uses: 8398a7/action-slack@v3
with:
channel: team-lang-java-notifs
status: failure
fields: repo,author,eventName
env:
SLACK_WEBHOOK_URL: ${{ fromJSON(steps.secrets.outputs.vault).slack_webhook }}
13 changes: 13 additions & 0 deletions .github/workflows/slack_notify.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
name: Slack Notifications
on:
check_run:
types: [rerequested, completed]

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

0 comments on commit f807f9d

Please sign in to comment.