-
Notifications
You must be signed in to change notification settings - Fork 578
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
614780e
commit b0eda8f
Showing
2 changed files
with
13 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -47,12 +47,17 @@ jobs: | |
sed -i '/<section class="table-of-contents">/,/<\/section>/{//!d}' book_repo/linear-algebra-with-python-book/index.html | ||
sed -i "/<section class=\"table-of-contents\">/a $toc" book_repo/linear-algebra-with-python-book/index.html | ||
- name: Set up Git remote with PAT | ||
run: | | ||
cd book_repo | ||
git remote set-url origin https://$GITHUB_ACTOR:${{ secrets.PERSONAL_ACCESS_TOKEN }}@github.com/weijie-chen/weijie-chen.github.io.git | ||
- name: Commit and Push Changes | ||
run: | | ||
cd book_repo | ||
git config user.name "GitHub Actions" | ||
git config user.email "[email protected]" | ||
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 https://$GITHUB_ACTOR:${{ secrets.PERSONAL_ACCESS_TOKEN }}@github.com/weijie-chen/weijie-chen.github.io.git | ||
cd book_repo | ||
git config user.name "GitHub Actions" | ||
git config user.email "[email protected]" | ||
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 master |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters