Skip to content

Commit 13c3375

Browse files
authored
Enhance CI with build notification workflows
Add notification steps for build success and failure.
1 parent 097aa72 commit 13c3375

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

.github/workflows/maven.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,17 @@ jobs:
3535
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
3636
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
3737
run: mvn -U -B test verify
38+
39+
notify:
40+
needs: [build]
41+
if: failure() && github.ref == 'refs/heads/main'
42+
uses: embabel/embabel-build/.github/workflows/discord-notify.yml@main
43+
secrets: inherit
44+
45+
notify-recovery:
46+
needs: [build]
47+
if: success() && github.ref == 'refs/heads/main'
48+
uses: embabel/embabel-build/.github/workflows/notify-recovery.yml@main
49+
with:
50+
branch: main
51+
secrets: inherit

0 commit comments

Comments
 (0)