From eac3f62eb962625586372ec988d56bd389fea8fd Mon Sep 17 00:00:00 2001 From: taskylizard <75871323+taskylizard@users.noreply.github.com> Date: Sat, 27 Jul 2024 07:52:49 +0000 Subject: [PATCH] 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. --- .github/single-page.py | 30 ------------------------------ .github/workflows/single-page.yml | 28 ---------------------------- 2 files changed, 58 deletions(-) delete mode 100644 .github/single-page.py delete mode 100644 .github/workflows/single-page.yml diff --git a/.github/single-page.py b/.github/single-page.py deleted file mode 100644 index 97908184a..000000000 --- a/.github/single-page.py +++ /dev/null @@ -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.") diff --git a/.github/workflows/single-page.yml b/.github/workflows/single-page.yml deleted file mode 100644 index 0aea5b3ec..000000000 --- a/.github/workflows/single-page.yml +++ /dev/null @@ -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'