Skip to content

rererun

rererun #5

Workflow file for this run

name: Jupyter to Markdown
on:
push:
paths:
- 'rapport.ipynb'
jobs:
convert:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install nbconvert notedown
- name: Convert Jupyter to Markdown
run: jupyter nbconvert --to markdown rapport.ipynb
- name: Move README
run: mv rapport.md docs/README.md
- name: Commit and push
run: |
git checkout main
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git add .
git commit -m "Convert rapport.ipynb to README.md"
git push origin HEAD:main