forked from Flipper-XFW/Xtreme-Firmware
-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (41 loc) · 824 Bytes
/
webhook.yml
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: 'Webhook'
on:
push:
# pull_request:
# types:
# - "opened"
# - "closed"
# - "reopened"
release:
types:
- "published"
workflow_run:
workflows:
- "Build"
- "Hotfix"
- "Lint"
- "Release"
- "SonarCloud"
- "Submodules"
types:
- "completed"
issues:
types:
- "opened"
- "closed"
- "reopened"
issue_comment:
types:
- "created"
jobs:
webhook:
runs-on: ubuntu-latest
steps:
- name: 'Checkout code'
uses: actions/checkout@v3
- name: Send webhook
env:
BUILD_WEBHOOK: ${{ secrets.BUILD_WEBHOOK }}
DEV_WEBHOOK: ${{ secrets.DEV_WEBHOOK }}
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
run: python .github/workflow_data/webhook.py