catchSheep is building colab notebooks from regular notebooks #9
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" | |
branch: $GITHUB_HEAD_REF | |
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 add $colab_directory | |
git commit -m "Updating the repository GitHub html pages in the docs folder" | |
- 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: true | |
branch: ${{ env.branch }} | |
- run: echo "Job status is ${{ job.status }}" |