-
Notifications
You must be signed in to change notification settings - Fork 28
36 lines (36 loc) · 1.06 KB
/
Copy pathsplit.yml
File metadata and controls
36 lines (36 loc) · 1.06 KB
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
name: Split notebooks by language
on:
pull_request_target:
paths:
- 'notebooks/src/**.ipynb'
types:
- closed
jobs:
convert_and_commit:
if: github.event.pull_request.merged == true
permissions:
contents: write
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./scripts
steps:
- name: Checkout
uses: actions/checkout@v4
- name : Remove old files
run: |
git rm -r ../notebooks/en
git rm -r ../notebooks/sl
continue-on-error: true
- name: Install jupyter and run nbconvert
run: |
python -m pip install jupyter
bash convert.sh
- name: Commit
run: |
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git add -A ../notebooks/en
git add -A ../notebooks/sl
git commit -m "Split by language"
git push