Added setup instructions to README #4
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: Clear Notebook Output | |
on: [push] | |
jobs: | |
clear_output: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.x' # Specify the Python version you want to use | |
- name: Install nbstripout | |
run: | | |
python -m pip install --upgrade pip | |
pip install nbstripout | |
- name: Run nbstripout to clear notebook output | |
run: | | |
find . -name "*.ipynb" | xargs nbstripout | |
git config --global user.name 'github-actions[bot]' | |
git config --global user.email '41898282+github-actions[bot]@users.noreply.github.com' | |
git add . | |
git commit -m "Clear notebook output" | |
git push |