Skip to content

Commit 6bf3b51

Browse files
committed
Added dispatch to the magics-test repository.
Added notify-teams action.
1 parent eeac8ed commit 6bf3b51

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.github/workflows/check-and-publish.yml

+33
Original file line numberDiff line numberDiff line change
@@ -132,3 +132,36 @@ jobs:
132132
repo: ${{ matrix.repo }}
133133
owner: ecmwf
134134
event_type: magics-python-updated
135+
136+
dispatch:
137+
name: dispatch
138+
needs:
139+
- quality
140+
- checks
141+
runs-on: ubuntu-20.04
142+
steps:
143+
- name: Run Regression Tests
144+
uses: peter-evans/repository-dispatch@v1
145+
with:
146+
token: ${{ secrets.GH_PAT }}
147+
repository: ecmwf/magics-test
148+
event-type: magics-python-updated
149+
client-payload: '{"magics_python_ref": "${{ github.ref }}", "magics_python_sha": "${{ github.sha }}"}'
150+
151+
notify-teams:
152+
name: notify
153+
runs-on: ubuntu-20.04
154+
needs:
155+
- quality
156+
- checks
157+
- deploy
158+
- notify
159+
- dispatch
160+
if: always() && github.ref == 'refs/heads/master'
161+
steps:
162+
- name: Notify Teams
163+
uses: ecmwf-actions/notify-teams@v1
164+
with:
165+
incoming_webhook: ${{ secrets.MS_TEAMS_INCOMING_WEBHOOK }}
166+
needs_context: ${{ toJSON(needs) }}
167+
workflow_id: check-and-publish.yml

0 commit comments

Comments
 (0)