BREAKING CHANGE: chore(ci): don't autogenerate single-page anymore

Use feedback.tasky.workers.dev/single-page. The single-page in the repo will stay.
This commit is contained in:
taskylizard 2024-07-27 07:52:49 +00:00
parent cef2fb1efd
commit eac3f62eb9
No known key found for this signature in database
GPG key ID: 1820131ED1A24120
2 changed files with 0 additions and 58 deletions

View file

@ -1,30 +0,0 @@
import glob
import time
def output():
read = glob.glob("*.md")
content = ""
nsfw_content = ""
ignore_files = {"README.md", "feedback.md", "posts.md", "index.md"}
for file in read:
if file not in ignore_files:
with open(file, "r") as f:
if "NSFWPiracy.md" == file:
nsfw_content += f.read()
continue
content += f.read()
return content + nsfw_content
def main():
content = output()
with open("single-page", "w") as file:
file.write(content)
if __name__ == "__main__":
s = time.perf_counter()
main()
elapsed = time.perf_counter() - s
print(f"{__file__} executed in {elapsed:0.2f} seconds.")

View file

@ -1,28 +0,0 @@
name: Update Single Page
on:
push:
branches: main
workflow_dispatch:
jobs:
update:
name: Update Single Page
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Create local changes
run: python .github/single-page.py
- uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: '♻️ update single page'