-
Notifications
You must be signed in to change notification settings - Fork 3
45 lines (38 loc) · 1.49 KB
/
after_commit.yml
File metadata and controls
45 lines (38 loc) · 1.49 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: Dispatch event to PySDK
on:
push:
branches:
- main
jobs:
dispatch:
name: Dispatch events to dependent repositories
runs-on: ubuntu-latest
steps:
- name: Dispatch event to PySDK
uses: peter-evans/repository-dispatch@28959ce8df70de7be546dd1250a005dd32156697 # v4.0.1
with:
token: ${{ secrets.TRIGGER_PYSDK_WORKFLOW_PAT }}
repository: nebius/pysdk
event-type: updated-${{ github.event.repository.name }}
- name: Dispatch event to JS-SDK
uses: peter-evans/repository-dispatch@28959ce8df70de7be546dd1250a005dd32156697 # v4.0.1
with:
token: ${{ secrets.TRIGGER_TSSDK_WORKFLOW_PAT }}
repository: nebius/js-sdk
event-type: updated-${{ github.event.repository.name }}
notify-slack-on-failure:
name: Notify Slack on failure
if: failure()
needs: [dispatch]
runs-on: ubuntu-latest
steps:
- name: Post text to a Slack channel
uses: slackapi/slack-github-action@45a88b9581bfab2566dc881e2cd66d334e621e2c # v3.0.3
with:
method: chat.postMessage
token: ${{ secrets.SLACK_OAUTH_TOKEN }}
payload: |
channel: ${{ secrets.SLACK_CHANNEL }}
text: |
🚨 Workflow *${{ github.workflow }}* failed on <${{ github.server_url }}/${{ github.repository }}|${{ github.repository }}>
<${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}|View run>