Skip to content

Commit 49a7157

Browse files
committed
test
1 parent 1c835e4 commit 49a7157

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed

.github/workflows/convert-to-qmd.yml

+9-6
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ jobs:
99
convert-and-copy:
1010
runs-on: ubuntu-latest
1111

12-
permissions: write-all
12+
permissions:
13+
contents: write # Ensure the job has write permissions
1314

1415
steps:
1516
- name: Checkout the Linear_Algebra_with_Python repository
@@ -49,15 +50,17 @@ jobs:
4950
sed -i '/<section class="table-of-contents">/,/<\/section>/{//!d}' book_repo/linear-algebra-with-python-book/index.html
5051
sed -i "/<section class=\"table-of-contents\">/a $toc" book_repo/linear-algebra-with-python-book/index.html
5152
52-
- name: Remove extraheader to avoid conflicts with PAT
53-
run: git config --unset-all http.https://github.com/.extraheader
54-
55-
- name: Commit and Push Changes
53+
- name: Set up SSH Agent
54+
uses: webfactory/ssh-agent@v0.5.3
55+
with:
56+
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
57+
58+
- name: Commit and Push Changes via SSH
5659
run: |
5760
cd book_repo
5861
git config user.name "GitHub Actions"
5962
git config user.email "actions@github.com"
6063
git add linear-algebra-with-python-book/chapters/*
6164
git add linear-algebra-with-python-book/index.html
6265
git commit -m "Updated chapters and Table of Contents"
63-
git push origin main:master
66+
git push git@github.com:weijie-chen/weijie-chen.github.io.git main

notebooks/Chapter 2 - Basic Matrix Algebra.ipynb

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"outputs": [],
2929
"source": [
3030
"from IPython.core.interactiveshell import InteractiveShell\n",
31-
"InteractiveShell.ast_node_interactivity = \"all\" # display multiple lines."
31+
"InteractiveShell.ast_node_interactivity = \"all\" # display multiple lines"
3232
]
3333
},
3434
{

0 commit comments

Comments
 (0)