From 7568d790048795a474fe538fe9f8fe3c87a43b4e Mon Sep 17 00:00:00 2001 From: Fundor333 Date: Sat, 10 May 2025 00:31:46 +0200 Subject: [PATCH] Remove outdated cron workflows for Anilist, webmentions, and weekly tasks --- .github/workflows/anilist.yml | 30 ------------------- .github/workflows/webmentions.yml | 49 ------------------------------- .github/workflows/weekly.yml | 38 ------------------------ 3 files changed, 117 deletions(-) delete mode 100644 .github/workflows/anilist.yml delete mode 100644 .github/workflows/webmentions.yml delete mode 100644 .github/workflows/weekly.yml diff --git a/.github/workflows/anilist.yml b/.github/workflows/anilist.yml deleted file mode 100644 index e3ac4da2..00000000 --- a/.github/workflows/anilist.yml +++ /dev/null @@ -1,30 +0,0 @@ -name: Anilist Cron - -on: - schedule: - - cron: "0 */6 * * *" - push: - branches: - - main - pull_request: - branches: - - main - workflow_dispatch: -jobs: - Anilist: - runs-on: ubuntu-latest - steps: - - name: Check out repository - uses: actions/checkout@master - - - name: Set up Python - uses: actions/setup-python@v5 - with: - python-version: "3.13" - cache: "pip" # caching pip dependencies - - - name: Install Pip dependencies - run: pip install -r requirements.txt - - - name: Run Anylist - run: python ./action_script/aniist_run.py diff --git a/.github/workflows/webmentions.yml b/.github/workflows/webmentions.yml deleted file mode 100644 index d1428a94..00000000 --- a/.github/workflows/webmentions.yml +++ /dev/null @@ -1,49 +0,0 @@ -name: Webmentions - -on: - schedule: - - cron: "0 */10 * * *" - push: - branches: - - main - pull_request: - branches: - - main - workflow_dispatch: -jobs: - webmentions: - runs-on: ubuntu-latest - steps: - - name: Check out repository - uses: actions/checkout@master - - - name: Set up Python - uses: actions/setup-python@v5 - with: - python-version: "3.13" - cache: "pip" # caching pip dependencies - - - name: Install Pip dependencies - run: pip install -r requirements.txt - - - name: Fetch Syndication - run: python ./action_script/syndication-collector.py - - - name: Fetch webmentions - env: - WEBMENTIONS_TOKEN: ${{ secrets.WEBMENTIONS_TOKEN }} - run: python ./action_script/webmention.py - - - name: Commit to repository - env: - GITHUB_TOKEN: ${{ secrets.TOKEN }} - COMMIT_MSG: | - 👾Fetch webmentions - skip-checks: true - run: | - git config user.email "git@fundor333.com" - git config user.name "fundor333" - git remote set-url origin https://x-access-token:${GITHUB_TOKEN}@github.com/fundor333/fundor333.github.io.git - git checkout main - git add . - git diff --quiet && git diff --staged --quiet || (git commit -m "${COMMIT_MSG}"; git push origin main) diff --git a/.github/workflows/weekly.yml b/.github/workflows/weekly.yml deleted file mode 100644 index 856f99ef..00000000 --- a/.github/workflows/weekly.yml +++ /dev/null @@ -1,38 +0,0 @@ -name: Weekly - -on: - schedule: - - cron: "15 6 * * 0" - workflow_dispatch: -jobs: - weekly: - runs-on: ubuntu-latest - steps: - - name: Check out repository - uses: actions/checkout@master - - - name: Set up Python - uses: actions/setup-python@v5 - with: - python-version: "3.13" - cache: "pip" # caching pip dependencies - - - name: Install Pip dependencies - run: pip install -r requirements.txt - - - name: Generate Weekly - run: make weekly - - - name: Commit to repository - env: - GITHUB_TOKEN: ${{ secrets.TOKEN }} - COMMIT_MSG: | - 👾Generate Weekly - skip-checks: true - run: | - git config user.email "git@fundor333.com" - git config user.name "fundor333" - git remote set-url origin https://x-access-token:${GITHUB_TOKEN}@github.com/fundor333/fundor333.github.io.git - git checkout main - git add . - git diff --quiet && git diff --staged --quiet || (git commit -m "${COMMIT_MSG}"; git push origin main)