We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3d9ccd0 commit 54619e5Copy full SHA for 54619e5
.github/workflows/sync-notebook.yml
@@ -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