Skip to content

Commit 54619e5

Browse files
authored
Create sync-notebook.yml / C2DH/jdh-notebook#193
1 parent 3d9ccd0 commit 54619e5

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

Diff for: .github/workflows/sync-notebook.yml

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
on:
2+
pull_request:
3+
types:
4+
- closed
5+
name: GitHub Actions for notebook syncing
6+
jobs:
7+
if_merged:
8+
if: github.event.pull_request.merged == true
9+
runs-on: ubuntu-latest
10+
name: jupytext
11+
steps:
12+
- name: checkout repo
13+
uses: actions/checkout@v3
14+
15+
- name: installing & running jupytext
16+
run: |
17+
pip install jupytext || pip install jupytext --break-system-packages
18+
jupytext --set-formats ipynb,md article.ipynb
19+
jupytext --sync article.ipynb
20+
21+
- name: committing changes
22+
uses: stefanzweifel/git-auto-commit-action@v5
23+
with:
24+
commit_message: Automated commit
25+
branch: ${{ github.ref }}
26+
create_branch: false

0 commit comments

Comments
 (0)