updated dependencies #128
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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] | |
}); | |
} |