Skip to content

GitHub Actions Ipynb for publishing #4

GitHub Actions Ipynb for publishing

GitHub Actions Ipynb for publishing #4

on: [workflow_dispatch]
name: GitHub Actions Ipynb for publishing
jobs:
ipynb_for_publishing:
runs-on: ubuntu-latest
name: Ipynb for publishing
steps:
- name: checkout repo
uses: actions/checkout@v3
- name: Skim example file
id: skim
uses: c2dh/[email protected]
with:
notebook: 'article.ipynb'
output_notebook: 'skim-article.ipynb'
# Use the output from the `hello` step
- name: Use the output
run: echo "number of cells ${{ steps.skim.outputs.size }} - output ${{ steps.skim.outputs.outputNotebook }}"
- name: commit changes
uses: stefanzweifel/git-auto-commit-action@v4
with:
file_pattern: '*.ipynb'