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 8949495 commit d2c80f7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/convert-to-qmd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
runs-on: ubuntu-latest

permissions:
contents: write # Grant permissions to write content to the repository
contents: write # Ensure the job has write permissions

steps:
- name: Checkout the Linear_Algebra_with_Python repository
Expand Down Expand Up @@ -50,10 +50,8 @@ 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: Remove extraheader to avoid conflicts with PAT
run: git config --unset-all http.https://github.com/.extraheader

- name: Commit and Push Changes
run: |
Expand All @@ -63,4 +61,4 @@ jobs:
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 origin 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 d2c80f7

Please sign in to comment.