-
-
Notifications
You must be signed in to change notification settings - Fork 2
99 lines (95 loc) · 4.76 KB
/
deploy-all-prod.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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
name: "Deploy All Prod"
on:
schedule:
- cron: '0 8 * * 1'
workflow_dispatch:
jobs:
notify:
name: "Trigger Production Deploys"
runs-on: ubuntu-latest
# Use the Bash shell regardless whether the GitHub Actions runner is ubuntu-latest, macos-latest, or windows-latest
defaults:
run:
shell: bash
steps:
- name: Notify MembershipApi
env:
CI_TOKEN: ${{ secrets.CI_TOKEN }}
PARENT_REPO: LiveChurchSolutions/MembershipApi
PARENT_BRANCH: main
WORKFLOW_ID: 5393792
run:
|
curl -fL --retry 3 -X POST -H "Accept: application/vnd.github.v3+json" -H "Authorization: token ${{ env.CI_TOKEN }}" https://api.github.com/repos/${{ env.PARENT_REPO }}/actions/workflows/${{ env.WORKFLOW_ID }}/dispatches -d '{"ref":"${{ env.PARENT_BRANCH }}"}'
- name: Notify LessonsApi
env:
CI_TOKEN: ${{ secrets.CI_TOKEN }}
PARENT_REPO: LiveChurchSolutions/LessonsApi
PARENT_BRANCH: main
WORKFLOW_ID: 12009770
run:
|
curl -fL --retry 3 -X POST -H "Accept: application/vnd.github.v3+json" -H "Authorization: token ${{ env.CI_TOKEN }}" https://api.github.com/repos/${{ env.PARENT_REPO }}/actions/workflows/${{ env.WORKFLOW_ID }}/dispatches -d '{"ref":"${{ env.PARENT_BRANCH }}"}'
- name: Notify MessagingApi
env:
CI_TOKEN: ${{ secrets.CI_TOKEN }}
PARENT_REPO: LiveChurchSolutions/MessagingApi
PARENT_BRANCH: main
WORKFLOW_ID: 6421456
run:
|
curl -fL --retry 3 -X POST -H "Accept: application/vnd.github.v3+json" -H "Authorization: token ${{ env.CI_TOKEN }}" https://api.github.com/repos/${{ env.PARENT_REPO }}/actions/workflows/${{ env.WORKFLOW_ID }}/dispatches -d '{"ref":"${{ env.PARENT_BRANCH }}"}'
- name: Notify AttendanceApi
env:
CI_TOKEN: ${{ secrets.CI_TOKEN }}
PARENT_REPO: LiveChurchSolutions/AttendanceApi
PARENT_BRANCH: main
WORKFLOW_ID: 5210296
run:
|
curl -fL --retry 3 -X POST -H "Accept: application/vnd.github.v3+json" -H "Authorization: token ${{ env.CI_TOKEN }}" https://api.github.com/repos/${{ env.PARENT_REPO }}/actions/workflows/${{ env.WORKFLOW_ID }}/dispatches -d '{"ref":"${{ env.PARENT_BRANCH }}"}'
- name: Notify GivingApi
env:
CI_TOKEN: ${{ secrets.CI_TOKEN }}
PARENT_REPO: LiveChurchSolutions/GivingApi
PARENT_BRANCH: main
WORKFLOW_ID: 5179248
run:
|
curl -fL --retry 3 -X POST -H "Accept: application/vnd.github.v3+json" -H "Authorization: token ${{ env.CI_TOKEN }}" https://api.github.com/repos/${{ env.PARENT_REPO }}/actions/workflows/${{ env.WORKFLOW_ID }}/dispatches -d '{"ref":"${{ env.PARENT_BRANCH }}"}'
- name: Notify ReportingApi
env:
CI_TOKEN: ${{ secrets.CI_TOKEN }}
PARENT_REPO: LiveChurchSolutions/ReportingApi
PARENT_BRANCH: main
WORKFLOW_ID: 17427583
run:
|
curl -fL --retry 3 -X POST -H "Accept: application/vnd.github.v3+json" -H "Authorization: token ${{ env.CI_TOKEN }}" https://api.github.com/repos/${{ env.PARENT_REPO }}/actions/workflows/${{ env.WORKFLOW_ID }}/dispatches -d '{"ref":"${{ env.PARENT_BRANCH }}"}'
- name: Notify ContentApi
env:
CI_TOKEN: ${{ secrets.CI_TOKEN }}
PARENT_REPO: LiveChurchSolutions/ContentApi
PARENT_BRANCH: main
WORKFLOW_ID: 39047587
run:
|
curl -fL --retry 3 -X POST -H "Accept: application/vnd.github.v3+json" -H "Authorization: token ${{ env.CI_TOKEN }}" https://api.github.com/repos/${{ env.PARENT_REPO }}/actions/workflows/${{ env.WORKFLOW_ID }}/dispatches -d '{"ref":"${{ env.PARENT_BRANCH }}"}'
- name: Notify ChumsApp
env:
CI_TOKEN: ${{ secrets.CI_TOKEN }}
PARENT_REPO: LiveChurchSolutions/ChumsApp
PARENT_BRANCH: main
WORKFLOW_ID: 5436869
run:
|
curl -fL --retry 3 -X POST -H "Accept: application/vnd.github.v3+json" -H "Authorization: token ${{ env.CI_TOKEN }}" https://api.github.com/repos/${{ env.PARENT_REPO }}/actions/workflows/${{ env.WORKFLOW_ID }}/dispatches -d '{"ref":"${{ env.PARENT_BRANCH }}"}'
- name: Notify ChurchAppsWeb
env:
CI_TOKEN: ${{ secrets.CI_TOKEN }}
PARENT_REPO: LiveChurchSolutions/ChurchAppsWeb
PARENT_BRANCH: main
WORKFLOW_ID: 5551204
run:
|
curl -fL --retry 3 -X POST -H "Accept: application/vnd.github.v3+json" -H "Authorization: token ${{ env.CI_TOKEN }}" https://api.github.com/repos/${{ env.PARENT_REPO }}/actions/workflows/${{ env.WORKFLOW_ID }}/dispatches -d '{"ref":"${{ env.PARENT_BRANCH }}"}'