Skip to content

GitHub Actions Ipynb for preflight #16

GitHub Actions Ipynb for preflight

GitHub Actions Ipynb for preflight #16

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: 'example/javascript.ipynb'
functions: 'checkurls,checkjavascript,checktags,checkhtml,checkcitation,checkoutput'
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'