Skip to content

Commit

Permalink
try to fix ci 4
Browse files Browse the repository at this point in the history
  • Loading branch information
Not-A-Normal-Robot committed Jan 7, 2024
1 parent a749bb4 commit 5c9d8ba
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
6 changes: 1 addition & 5 deletions .github/scripts/generate_faq_html.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,6 @@
template_insertion_location = "<INSERT_QUESTIONS>"

def faq_html(entry):
if not entry.get("question") or not entry.get("answer"):
return ""

author = entry.get("author", "Unknown")
return f"""
<div class="question">
<button class="question-header">
Expand All @@ -23,7 +19,7 @@ def faq_html(entry):
</button>
<div class="answer">
{entry['answer']}
<div class="answer-source">— {author}</div>
<div class="answer-source">— {entry['answer']}</div>
</div>
</div>
"""
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/update_faq.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ on:
paths:
- 'data/faq.json'

permissions:
contents: write

jobs:
update-faq:
runs-on: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion data/faq.json
Original file line number Diff line number Diff line change
Expand Up @@ -290,4 +290,4 @@
"answerHTML": "<p>Techmino has received a warning about Copyright infringement from The Tetris Company. Techmino is no longer available on the App Store.</p><p>A TestFlight was made for Techmino, but unfortunately, the maximum number of members had been reached, therefore, you can't download Techmino on iOS anymore. We apologize for the inconvenience. If it says the beta isn't accepting more testers, unfortunately, it is not available at this time.</p>",
"author": "nekonaomii (edited by NOT_A_ROBOT)"
}
]
]

0 comments on commit 5c9d8ba

Please sign in to comment.