Skip to content

Commit bf6b63a

Browse files
committed
feat(CI): added MS Teams notifications
1 parent 8743db6 commit bf6b63a

File tree

3 files changed

+45
-0
lines changed

3 files changed

+45
-0
lines changed

.github/workflows/ci.yml

+15
Original file line numberDiff line numberDiff line change
@@ -74,3 +74,18 @@ jobs:
7474
repository: private-downstream-ci
7575
event_type: downstream-ci-hpc
7676
payload: '{"metkit": "ecmwf/metkit@${{ github.event.pull_request.head.sha || github.sha }}"}'
77+
78+
notify:
79+
runs-on: ubuntu-latest
80+
needs:
81+
- downstream-ci
82+
- private-downstream-ci
83+
- downstream-ci-hpc
84+
- private-downstream-ci-hpc
85+
if: always() && ${{ !github.event.pull_request.head.repo.fork && github.event.action != 'labeled' || github.event.label.name == 'approved-for-ci' }}
86+
steps:
87+
- name: Trigger Teams notification
88+
uses: ecmwf-actions/notify-teams@v1
89+
with:
90+
incoming_webhook: ${{ secrets.MS_TEAMS_INCOMING_WEBHOOK }}
91+
needs_context: ${{ toJSON(needs) }}
+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: Notify new issue
2+
3+
on:
4+
issues:
5+
types:
6+
- "opened"
7+
8+
jobs:
9+
notify:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Notify new issue
13+
uses: ecmwf-actions/notify-teams-issue@v1
14+
with:
15+
incoming_webhook: ${{ secrets.MS_TEAMS_INCOMING_WEBHOOK }}

.github/workflows/notify-new-pr.yml

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: Notify new PR
2+
3+
on:
4+
pull_request_target:
5+
types:
6+
- "opened"
7+
8+
jobs:
9+
notify:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Notify new PR
13+
uses: ecmwf-actions/notify-teams-pr@v1
14+
with:
15+
incoming_webhook: ${{ secrets.MS_TEAMS_INCOMING_WEBHOOK }}

0 commit comments

Comments
 (0)