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