-
Notifications
You must be signed in to change notification settings - Fork 6
72 lines (58 loc) · 1.65 KB
/
notify.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
name: Notify
on:
push:
branches:
- jp
- en
- en-staging
jobs:
# Notify the en branch
notify-en:
runs-on: ubuntu-latest
timeout-minutes: 3
# Being extra explicit, we only want this to run on the en branch
if: github.ref == 'refs/heads/en'
strategy:
matrix:
node-version: [14.x]
steps:
- name: "Trigger Netlify deployment"
uses: joelwmale/[email protected]
env:
WEBHOOK_URL: ${{ secrets.NETLIFY_BOXDEV_WEBHOOK }}
data: "{}"
- name: "Trigger Netlify deployment (Box.dev mirror)"
uses: joelwmale/[email protected]
env:
WEBHOOK_URL: ${{ secrets.NETLIFY_BOXDEV_MIRROR_WEBHOOK }}
data: "{}"
# Notify the en-staging branch
notify-en-staging:
runs-on: ubuntu-latest
timeout-minutes: 3
# Being extra explicit, we only want this to run on the en-staging branch
if: github.ref == 'refs/heads/en-staging'
strategy:
matrix:
node-version: [14.x]
steps:
- name: "Trigger Netlify deployment"
uses: joelwmale/[email protected]
env:
WEBHOOK_URL: ${{ secrets.NETLIFY_BOXDEV_STAGING_WEBHOOK }}
data: "{}"
# Notify the jp branch
notify-jp:
runs-on: ubuntu-latest
timeout-minutes: 3
# Being extra explicit, we only want this to run on the jp branch
if: github.ref == 'refs/heads/jp'
strategy:
matrix:
node-version: [14.x]
steps:
- name: "Trigger Netlify deployment"
uses: joelwmale/[email protected]
env:
WEBHOOK_URL: ${{ secrets.NETLIFY_BOXDEV_JP_WEBHOOK }}
data: "{}"