Skip to content

Commit

Permalink
[+] Cloudflare cleanup action
Browse files Browse the repository at this point in the history
  • Loading branch information
hykilpikonna committed Jan 2, 2025
1 parent d3b50b4 commit 42a7569
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/cloudflare-clean.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Cloudflare Cleanup

on:
schedule:
- cron: '0 0 * * 0' # Runs every week on Sunday at 00:00 UTC
workflow_dispatch: # Allows manual triggering of the workflow

jobs:
clean:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
cache: 'yarn'
- run: yarn install

- name: Clean Cloudflare Deployments (one-among-us)
run: yarn cloudflare_clean
with:
env:
CF_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
CF_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
CF_PAGES_PROJECT_NAME: one-among-us

- name: Clean Cloudflare Deployments (our-data)
run: yarn cloudflare_clean
with:
env:
CF_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
CF_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
CF_PAGES_PROJECT_NAME: our-data

0 comments on commit 42a7569

Please sign in to comment.