File tree 2 files changed +10
-7
lines changed
2 files changed +10
-7
lines changed Original file line number Diff line number Diff line change 9
9
convert-and-copy :
10
10
runs-on : ubuntu-latest
11
11
12
- permissions : write-all
12
+ permissions :
13
+ contents : write # Ensure the job has write permissions
13
14
14
15
steps :
15
16
- name : Checkout the Linear_Algebra_with_Python repository
@@ -49,15 +50,17 @@ jobs:
49
50
sed -i '/<section class="table-of-contents">/,/<\/section>/{//!d}' book_repo/linear-algebra-with-python-book/index.html
50
51
sed -i "/<section class=\"table-of-contents\">/a $toc" book_repo/linear-algebra-with-python-book/index.html
51
52
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
56
59
run : |
57
60
cd book_repo
58
61
git config user.name "GitHub Actions"
59
62
git config user.email "actions@github.com"
60
63
git add linear-algebra-with-python-book/chapters/*
61
64
git add linear-algebra-with-python-book/index.html
62
65
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
Original file line number Diff line number Diff line change 28
28
"outputs" : [],
29
29
"source" : [
30
30
" 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"
32
32
]
33
33
},
34
34
{
You can’t perform that action at this time.
0 commit comments