Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MS Teams notifications #47

Merged
merged 9 commits into from
Mar 26, 2025
15 changes: 15 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,3 +74,18 @@ jobs:
repository: private-downstream-ci
event_type: downstream-ci-hpc
payload: '{"metkit": "ecmwf/metkit@${{ github.event.pull_request.head.sha || github.sha }}"}'

notify:
runs-on: ubuntu-latest
needs:
- downstream-ci
- private-downstream-ci
- downstream-ci-hpc
- private-downstream-ci-hpc
if: ${{ always() && !github.event.pull_request.head.repo.fork && (github.event.action != 'labeled' || github.event.label.name == 'approved-for-ci') }}
steps:
- name: Trigger Teams notification
uses: ecmwf-actions/notify-teams@v1
with:
incoming_webhook: ${{ secrets.MS_TEAMS_INCOMING_WEBHOOK }}
needs_context: ${{ toJSON(needs) }}
14 changes: 14 additions & 0 deletions .github/workflows/notify-issues.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Notify Issues

on:
issues:
types: [opened, reopened]

jobs:
notify:
runs-on: ubuntu-latest
steps:
- name: Notify Issues
uses: ecmwf-actions/notify-teams-issue@v1
with:
incoming_webhook: ${{ secrets.MS_TEAMS_INCOMING_WEBHOOK }}
14 changes: 14 additions & 0 deletions .github/workflows/notify-pull-request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Notify Pull Request

on:
pull_request_target:
types: [opened, reopened]

jobs:
notify:
runs-on: ubuntu-latest
steps:
- name: Notify Pull Request
uses: ecmwf-actions/notify-teams-pr@v1
with:
incoming_webhook: ${{ secrets.MS_TEAMS_INCOMING_WEBHOOK }}
Loading