Skip to content

Commit

Permalink
[feat] adding notebook auto committer
Browse files Browse the repository at this point in the history
  • Loading branch information
ctr26 committed Aug 15, 2024
1 parent f20021a commit 3e3185f
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/notebooks.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: jupytext-changes

on:
push:
pull_request:

jobs:
jupytext:
runs-on: ubuntu-latest
steps:
# Checkout
- uses: actions/checkout@v2

- name: Install Packages if changed files
if: ${{ steps.filter.outputs.notebooks == 'true' }}
run: |
pip install jupytext
- name: Synch changed files
if: ${{ steps.filter.outputs.notebooks == 'true' }}
run: |
jupytext --use-source-timestamp --sync scripts/*.py
# Auto commit any updated notebook files
- uses: stefanzweifel/git-auto-commit-action@v4
with:
# This would be more useful if the git hash were referenced?
commit_message: "Auto-commit updated notebooks"

0 comments on commit 3e3185f

Please sign in to comment.