Skip to content

Commit

Permalink
Merge branch 'main' of github.com:calculquebec/cq-formation-dat201
Browse files Browse the repository at this point in the history
  • Loading branch information
plstonge committed Jan 29, 2025
2 parents a5f6ca7 + 9820d92 commit c78cf24
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/make.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Build exercise and solution notebooks

on:
push:
branches:
- main
paths:
- 'src/**'

jobs:
make:
runs-on: ubuntu-latest
steps:
# https://github.com/actions/checkout
- name: Git checkout latest revision
uses: actions/checkout@v4

# https://github.com/actions/setup-python
- name: Set up Python 3.11
uses: actions/setup-python@v5
with:
python-version: '3.11'

- name: Rebuild the final notebooks
run: |
python make.py -r
- name: Commit any change
run: |
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git add en fr solution-{en,fr}
! git diff --cached --quiet && git commit -m "Exercise and solution notebooks rebuilt" && git push

0 comments on commit c78cf24

Please sign in to comment.