From 49a715798fee458db4aa4708cc01e3c95fd90096 Mon Sep 17 00:00:00 2001 From: weijie-chen Date: Fri, 16 Aug 2024 15:23:44 +0200 Subject: [PATCH] test --- .github/workflows/convert-to-qmd.yml | 15 +++++++++------ notebooks/Chapter 2 - Basic Matrix Algebra.ipynb | 2 +- 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/.github/workflows/convert-to-qmd.yml b/.github/workflows/convert-to-qmd.yml index fa7239c..842bd66 100644 --- a/.github/workflows/convert-to-qmd.yml +++ b/.github/workflows/convert-to-qmd.yml @@ -9,7 +9,8 @@ jobs: convert-and-copy: runs-on: ubuntu-latest - permissions: write-all + permissions: + contents: write # Ensure the job has write permissions steps: - name: Checkout the Linear_Algebra_with_Python repository @@ -49,10 +50,12 @@ jobs: sed -i '/
/,/<\/section>/{//!d}' book_repo/linear-algebra-with-python-book/index.html sed -i "/
/a $toc" book_repo/linear-algebra-with-python-book/index.html - - name: Remove extraheader to avoid conflicts with PAT - run: git config --unset-all http.https://github.com/.extraheader - - - name: Commit and Push Changes + - name: Set up SSH Agent + uses: webfactory/ssh-agent@v0.5.3 + with: + ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }} + + - name: Commit and Push Changes via SSH run: | cd book_repo git config user.name "GitHub Actions" @@ -60,4 +63,4 @@ jobs: git add linear-algebra-with-python-book/chapters/* git add linear-algebra-with-python-book/index.html git commit -m "Updated chapters and Table of Contents" - git push origin main:master + git push git@github.com:weijie-chen/weijie-chen.github.io.git main diff --git a/notebooks/Chapter 2 - Basic Matrix Algebra.ipynb b/notebooks/Chapter 2 - Basic Matrix Algebra.ipynb index 1820ebd..bf202cd 100644 --- a/notebooks/Chapter 2 - Basic Matrix Algebra.ipynb +++ b/notebooks/Chapter 2 - Basic Matrix Algebra.ipynb @@ -28,7 +28,7 @@ "outputs": [], "source": [ "from IPython.core.interactiveshell import InteractiveShell\n", - "InteractiveShell.ast_node_interactivity = \"all\" # display multiple lines." + "InteractiveShell.ast_node_interactivity = \"all\" # display multiple lines" ] }, {