Skip to content

Commit a998e49

Browse files
authored
Merge pull request #254 from MohamedSabthar/master
Extend workflow to check breaking changes on repository dispatch
2 parents 5d3d13a + d11be2a commit a998e49

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

.github/workflows/ci.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ on:
77
branches-ignore:
88
- "automated/dependency_version_update"
99
- "automated/dependency_version_update_tmp"
10+
repository_dispatch:
11+
types:
12+
check_connector_for_breaking_changes
1013

1114
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
1215
jobs:
@@ -78,3 +81,19 @@ jobs:
7881
echo "Covered Code Lines : ${{fromJson(steps.test_results.outputs.testResultsJson).coveredLines}}"
7982
echo "Total Code Lines : $(expr ${{fromJson(steps.test_results.outputs.testResultsJson).missedLines}} + ${{fromJson(steps.test_results.outputs.testResultsJson).coveredLines}})"
8083
echo "Code Coverage Percentage : ${{fromJson(steps.test_results.outputs.testResultsJson).coveragePercentage}}"
84+
85+
- name: Alert notifier on failure
86+
if: failure() && (github.event.action == 'check_connector_for_breaking_changes')
87+
run: |
88+
curl -X POST \
89+
'https://api.github.com/repos/ballerina-platform/ballerina-release/dispatches' \
90+
--header 'Accept: application/vnd.github.v3+json' \
91+
--header 'Authorization: Bearer ${{ secrets.BALLERINA_BOT_TOKEN }}' \
92+
--data-raw '{
93+
"event_type": "notify-ballerinax-connector-build-failure",
94+
"client_payload": {
95+
"repoName": "module-ballerinax-sfdc",
96+
"workflow": "CI"
97+
}
98+
}'
99+

0 commit comments

Comments
 (0)