1
0
mirror of https://github.com/one-among-us/data.git synced 2025-01-10 19:12:22 +08:00
one-among-us-data/.github/workflows/cloudflare-clean.yml

33 lines
929 B
YAML
Raw Normal View History

2025-01-02 20:06:29 +08:00
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
2025-01-02 20:08:36 +08:00
env:
CF_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
CF_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
CF_PAGES_PROJECT_NAME: one-among-us
2025-01-02 20:06:29 +08:00
- name: Clean Cloudflare Deployments (our-data)
run: yarn cloudflare_clean
2025-01-02 20:08:36 +08:00
env:
CF_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
CF_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
CF_PAGES_PROJECT_NAME: our-data