-
Notifications
You must be signed in to change notification settings - Fork 24
44 lines (44 loc) · 1.47 KB
/
main.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
on: push
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Re-deploy depdendents
if: ${{ github.ref == 'refs/heads/develop' }}
uses: actions/github-script@v6
with:
github-token: ${{ secrets.DEPLOY50_PAT }}
script: |
const dependents = [
['ai', '2020/x'],
['ai', '2023/fall'],
['ap', '2022'],
['beyond', '2019/x'],
['business', '2017/x'],
['business', '2023/fall'],
['cs50.tf', 'main'],
['cybersecurity', '2023/fall'],
['cybersecurity', '2023/x'],
['games', '2018/x'],
['harvard', '2023/fall'],
['harvard', '2023/x'],
['hbap.io', 'main'],
['law', '2019/x'],
['mobile', '2018/x'],
['python', '2022/x'],
['scratch', '2021/x'],
['sql', '2023/fall'],
['sql', '2023/x'],
['technology', '2017/x'],
['web', '2020/x'],
['web', '2023/fall'],
['yale', '2023/fall']
];
for (let dependent of dependents) {
await github.rest.actions.createWorkflowDispatch({
owner: 'cs50',
repo: dependent[0],
workflow_id: 'main.yml',
ref: dependent[1]
});
}