Skip to content

catchSheep is building colab notebooks from regular notebooks #16

catchSheep is building colab notebooks from regular notebooks

catchSheep is building colab notebooks from regular notebooks #16

name: Build google colab notebooks
run-name: ${{ github.actor }} is building colab notebooks from regular notebooks
on:
push
env:
notebook_dir: "./notebooks"
colab_directory: "./colab_notebooks"
jobs:
add_nbs:
runs-on: ubuntu-latest
steps:
- run: echo "The job was automatically triggered by a ${{ github.event_name }} event."
- name: Check out the repository to the runner
uses: actions/checkout@v4
- name: Run the colab build script
run: python build_scripts/colab_nb_builder.py --directory $notebook_dir --output_dir $colab_directory
- name: Configuring git & committing
run: |
git config --local user.name "colabifier-action"
git config --local user.email "[email protected]"
git add $colab_directory
git commit -m "Creating colab notebooks from regular notebooks"
- run: echo Current branch is $env
- name: Push changes # push the output folder to your repo
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
force_with_lease: true
branch: ${{ github.ref }}
- run: echo "Job status is ${{ job.status }}"