From c71ac5aa283c3130058636d0397d708c794214b0 Mon Sep 17 00:00:00 2001 From: catchSheep <81134674+catchSheep@users.noreply.github.com> Date: Fri, 5 Jul 2024 12:44:34 +0800 Subject: [PATCH] 3rd times the charm --- .github/workflows/notebook_colab_gen.yml | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/.github/workflows/notebook_colab_gen.yml b/.github/workflows/notebook_colab_gen.yml index 77a2bd4..f14185d 100644 --- a/.github/workflows/notebook_colab_gen.yml +++ b/.github/workflows/notebook_colab_gen.yml @@ -10,16 +10,14 @@ jobs: uses: actions/checkout@v4 - name: Run the colab build script run: python build_scripts/colab_nb_builder.py --directory notebooks - - name: switch from HTTPS to SSH - run: git remote set-url origin ${{ secrets.ssh }} - - name: check for changes - run: git status - - name: stage changed files - run: git add . - - name: commit changed files - run: git commit -m "Auto updating TODO.txt" - - name: fetch - run: git fetch - - name: push code - run: git push + - name: Configuring git + run: | + git config --local user.name "jpadfield" + git add ./colab_notebooks + git commit -m "Updating the repository GitHub html pages in the docs folder" + - 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 - run: echo "Job status is ${{ job.status }}"