Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
weijie-chen committed Aug 16, 2024
1 parent 1c835e4 commit 49a7157
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
15 changes: 9 additions & 6 deletions .github/workflows/convert-to-qmd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -49,15 +50,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: 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/[email protected]
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"
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 main:master
git push [email protected]:weijie-chen/weijie-chen.github.io.git main
2 changes: 1 addition & 1 deletion notebooks/Chapter 2 - Basic Matrix Algebra.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -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"
]
},
{
Expand Down

0 comments on commit 49a7157

Please sign in to comment.