rererun #5
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
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 |