Skip to content

GitHub Actions for nbconvert #23

GitHub Actions for nbconvert

GitHub Actions for nbconvert #23

Workflow file for this run

on: [workflow_dispatch]
name: GitHub Actions for nbconvert
jobs:
nbconvert:
runs-on: ubuntu-latest
name: nbconvert
steps:
- name: checkout repo
uses: actions/checkout@v3
- name: delete nbconvert branch
shell: bash
run: |
git push origin -d nbconvert
- name: Extract branch name & create the nbconvert branch (if it doesn't exist)
shell: bash
run: |
echo "GitHub reft_name ${{ github.ref_name }}"
git checkout -b nbconvert
git push -u origin nbconvert
id: extract_branch
- name: nbconvert run
run: |
pip install -r requirements.txt
python -m pip install jupyter nbconvert nbformat
python -m spacy download en_core_web_lg
jupyter nbconvert --execute --to notebook --inplace --ExecutePreprocessor.timeout=-1 checkmd.ipynb
# Use the output from the `preflight` step
- name: commit changes
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: Automated commit
branch: nbconvert
create_branch: true
- name: create pull request
run: gh pr create -B master -H nbconvert --title 'Comparison between nbconvert review of the article and the main article' --body 'Created by Github action'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}