From f8cd8b3ad8f676d71ccd95c40bfa13309270b5c2 Mon Sep 17 00:00:00 2001 From: ZZ Si Date: Wed, 25 Sep 2024 12:07:30 -0500 Subject: [PATCH] action --- .github/workflows/nb_diff.yml | 35 ++++++++++++++++------------------- 1 file changed, 16 insertions(+), 19 deletions(-) diff --git a/.github/workflows/nb_diff.yml b/.github/workflows/nb_diff.yml index cf7eacb..ae3edf1 100644 --- a/.github/workflows/nb_diff.yml +++ b/.github/workflows/nb_diff.yml @@ -1,22 +1,19 @@ -name: nbdiff-web-exporter -on: [push] - +name: nbdime-git-diff +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] jobs: - diff-action-test: + build: runs-on: ubuntu-latest - name: diff notebooks steps: - - name: Checkout - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - name: diff notebooks - uses: kuromt/diff-notebooks@v0.0.1 - id: nbdiff-web-exporter-action - with: - remote: "origin/diff-notebooks" - export_dir: "./artifacts" - - uses: actions/upload-artifact@v4 - with: - name: diff-notebooks - path: ${{steps.nbdiff-web-exporter-action.outputs.export_dir}} \ No newline at end of file + - uses: actions/checkout@v3 + with: + fetch-depth: 0 + - name: Set up Python 3.9 + uses: actions/setup-python@v3 + with: + python-version: "3.9.13" + - name: nbdime-git-diff + uses: raybellwaves/nbdime-git-diff@0.0.6 \ No newline at end of file