Skip to content

Commit

Permalink
Test of html conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
Nathan3-14 authored Feb 7, 2024
1 parent 6e5a620 commit 3f7b4ad
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 5 deletions.
21 changes: 19 additions & 2 deletions .github/workflows/branch-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,24 @@ jobs:
run: |
cd ${{ github.workspace }}
python -m pip install -U pip
python -m pip install -r ./requirements.txt%
python -m pip install -r ./requirements.txt
- name: Fix Mindmap
run: |
python ./mindmaps/electricity/convert-html.py
python ./mindmaps/electricity/convert-html.py
- name: Git Fix
run: |
git rm --cached ./mindmaps/electricity/index.html
git reset ./mindmaps/electricity/index.html
- name: Git Setup
run: |
git config user.name "GitHub Actions Bot"
git config user.email "[email protected]"
- name: Git
run: |
git add ./mindmaps/electricity/index.html
git commit -m "(action) Upgraded index.html"
git push
4 changes: 2 additions & 2 deletions .github/workflows/demo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ jobs:
- name: Git Fix
run: |
git rm --cached ./output.md
git reset ./output.md
git rm --cached ./mindmaps/electricity/index.html
git reset ./mindmaps/electricity/index.html
- name: Git Setup
Expand Down
2 changes: 1 addition & 1 deletion mindmaps/electricity/convert-html.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

title.replace_with(new_title)

with open("new_index.html", "w") as f:
with open("index.html", "w") as f:
f.write(soup.prettify())

print(soup.prettify())

0 comments on commit 3f7b4ad

Please sign in to comment.