@@ -47,12 +47,17 @@ jobs:
47
47
sed -i '/<section class="table-of-contents">/,/<\/section>/{//!d}' book_repo/linear-algebra-with-python-book/index.html
48
48
sed -i "/<section class=\"table-of-contents\">/a $toc" book_repo/linear-algebra-with-python-book/index.html
49
49
50
+ - name : Set up Git remote with PAT
51
+ run : |
52
+ cd book_repo
53
+ git remote set-url origin https://$GITHUB_ACTOR:${{ secrets.PERSONAL_ACCESS_TOKEN }}@github.com/weijie-chen/weijie-chen.github.io.git
54
+
50
55
- name : Commit and Push Changes
51
56
run : |
52
- cd book_repo
53
- git config user.name "GitHub Actions"
54
- git config user.email "actions@github.com"
55
- git add linear-algebra-with-python-book/chapters/*
56
- git add linear-algebra-with-python-book/index.html
57
- git commit -m "Updated chapters and Table of Contents"
58
- git push https://$GITHUB_ACTOR:${{ secrets.PERSONAL_ACCESS_TOKEN }}@github.com/weijie-chen/weijie-chen.github.io.git
57
+ cd book_repo
58
+ git config user.name "GitHub Actions"
59
+ git config user.email "actions@github.com"
60
+ git add linear-algebra-with-python-book/chapters/*
61
+ git add linear-algebra-with-python-book/index.html
62
+ git commit -m "Updated chapters and Table of Contents"
63
+ git push origin master
0 commit comments