Skip to content

Commit 7ea8044

Browse files
authored
Merge pull request #94 from AnswerConsulting/BENCH-196
BENCH-196 merge statuses added
2 parents cf1a1cb + e278d0d commit 7ea8044

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

.github/workflows/build_integration_and_code_analysis.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -87,19 +87,20 @@ jobs:
8787
if: ${{ always() }}
8888
needs: [ Build-Test, Sonar-Cloud ]
8989
runs-on: ubuntu-latest
90-
name: New push to repo
90+
name: Send Slack Notification
9191
steps:
9292
- name: Send GitHub trigger payload to Slack Workflow Builder
9393
id: slack
9494
uses: slackapi/[email protected]
9595
with:
9696
payload: |
9797
{
98-
"PR_URL": "${{ github.event.pull_request.html_url }}",
99-
"Sonar_Status": "${{ needs.Sonar-Cloud.outputs.job-status }}",
100-
"Test_Status": "${{ needs.Build-Test.outputs.job-status }}",
101-
"Title": "${{ github.event.pull_request.title }}",
102-
"Type": "${{ github.event.action }}"
98+
"PR_URL": "${{ github.event_name == 'push' && github.event.repository.html_url || github.event.pull_request.html_url }}",
99+
"Sonar_Status": "${{ needs.Sonar-Cloud.outputs.job-status }}",
100+
"Test_Status": "${{ needs.Build-Test.outputs.job-status }}",
101+
"Title": "${{ github.event_name == 'push' && github.event.commits[0].message || github.event.pull_request.title }}",
102+
"Type": "${{ github.event_name == 'push' && 'Merged' || github.event.action }}",
103+
"Author": "${{ github.actor }}"
103104
}
104105
env:
105-
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
106+
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}

0 commit comments

Comments
 (0)