catchSheep is building colab notebooks from regular notebooks #16
Workflow file for this run
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: 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 }}" |