GitHub Actions Ipynb for publishing #6
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: 'paper.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' | |