From 3ec6f33d95ceafd7512825faebad763899d2df62 Mon Sep 17 00:00:00 2001 From: eliselavy <35602279+eliselavy@users.noreply.github.com> Date: Tue, 26 Sep 2023 10:22:13 +0200 Subject: [PATCH] Create github-actions-preflight.yml --- .../workflows/github-actions-preflight.yml | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/github-actions-preflight.yml diff --git a/.github/workflows/github-actions-preflight.yml b/.github/workflows/github-actions-preflight.yml new file mode 100644 index 0000000..6034bf9 --- /dev/null +++ b/.github/workflows/github-actions-preflight.yml @@ -0,0 +1,24 @@ +on: [workflow_dispatch] + +name: GitHub Actions Ipynb +jobs: + ipynb_for_publishing: + runs-on: ubuntu-latest + name: Ipynb for publishing + steps: + - name: checkout repo + uses: actions/checkout@v3 + - name: check markdown + id: preflight + uses: c2dh/journal-of-digital-history-ipynb-preflight-action@master + with: + notebook: 'author_guideline_template.ipynb' + functions: 'checkcitation,checkoutput,checkhtml,checkjavascript,checktags,checkurls' + output_md: 'report.md' + # Use the output from the `preflight` step + - name: Use the output + run: echo "number of cells ${{ steps.preflight.outputs.size }} - output ${{ steps.preflight.outputs.checkmd }}" + - name: commit changes + uses: stefanzweifel/git-auto-commit-action@v4 + with: + file_pattern: '*.md' -- GitLab