D2L book Colab branch sync #160
This file contains 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
name: D2L book Colab branch sync | |
on: | |
# sync weekly | |
schedule: | |
- cron: '0 9 * * 1' | |
workflow_dispatch: | |
jobs: | |
sync: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python3 | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.x' | |
- name: Add colab instruction on notebooks | |
run: python3 tools/add_colab_instruction.py | |
- name: Commit files | |
run: | | |
git config --local user.email "[email protected]" | |
git config --local user.name "ActionBot" | |
git commit -am "Sync master" | |
git push -f origin master:colab |