Skip to content

Commit 7b99ca1

Browse files
committed
BENCH-196 Slack Notification Workflow added
1 parent 0107e22 commit 7b99ca1

File tree

1 file changed

+22
-1
lines changed

1 file changed

+22
-1
lines changed

.github/workflows/build_integration_and_code_analysis.yml

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,4 +77,25 @@ jobs:
7777
coverage_results_path: 'target/site/jacoco/jacoco.xml'
7878
coverage_report_title: 'Test coverage results'
7979
coverage_report_name: 'Test coverage results'
80-
github_token: ${{ secrets.GITHUB_TOKEN }}
80+
github_token: ${{ secrets.GITHUB_TOKEN }}
81+
82+
Notify-Slack:
83+
if: ${{ always() }}
84+
needs: [ Build-Test, Sonar-Cloud ]
85+
runs-on: ubuntu-latest
86+
name: New push to repo
87+
steps:
88+
- name: Send GitHub trigger payload to Slack Workflow Builder
89+
id: slack
90+
uses: slackapi/[email protected]
91+
with:
92+
payload: |
93+
{
94+
"PR_URL": "${{ github.event.pull_request.html_url }}",
95+
"Sonar_Status": "${{ needs.Sonar-Cloud.outputs.job-status }}",
96+
"Test_Status": "${{ needs.Build-Test.outputs.job-status }}",
97+
"Title": "${{ github.event.pull_request.title }}",
98+
"Type": "${{ github.event.action }}"
99+
}
100+
env:
101+
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}

0 commit comments

Comments
 (0)