Skip to content

Commit fd3a70b

Browse files
authored
ci: add a notification for Key4hep when the build fails (#5265)
Add a notification for Key4hep when the build fails
1 parent e200049 commit fd3a70b

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/report.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,3 +136,13 @@ jobs:
136136
echo "{\"text\":\"External pipeline failure in ${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}/actions/runs/${GITHUB_RUN_ID}?pr=${{steps.get-pr-number.outputs.PR_NUMBER}}.\"}" | tee data.json
137137
curl -X POST -H 'Content-type: application/json' --data "@data.json" ${EIC_EPIC_MATTERMOST_HOOK_URL}
138138
fi
139+
140+
- name: Post failure notifications to Key4hep mattermost
141+
if: steps.get-pr-number.outcome == 'success'
142+
env:
143+
KEY4HEP_MATTERMOST_HOOK_URL: ${{secrets.KEY4HEP_MATTERMOST_HOOK_URL}}
144+
run: |
145+
if [ -f comment-51-key4hep-external-failure.md ] ; then
146+
echo "{\"text\":\"External pipeline failure in ${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}/actions/runs/${GITHUB_RUN_ID}?pr=${{steps.get-pr-number.outputs.PR_NUMBER}}.\"}" | tee data.json
147+
curl -X POST -H 'Content-type: application/json' --data "@data.json" ${KEY4HEP_MATTERMOST_HOOK_URL}
148+
fi

0 commit comments

Comments
 (0)