70bf21e064
Deploy (to testing) and Test Playground Preview Worker / Deploy Playground Preview Worker (testing) (push) Has been skipped
Deploy Workers Shared Staging / Deploy Workers Shared Staging (push) Failing after 0s
Prerelease / build (push) Has been skipped
Handle Changesets / Handle Changesets (push) Has been cancelled
Semgrep OSS scan / semgrep-oss (push) Has been cancelled
34 lines
912 B
YAML
34 lines
912 B
YAML
# This workflow cleans up any leftover projects created by e2e runs.
|
|
|
|
name: E2E Project Cleanup
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
schedule:
|
|
- cron: "0 */2 * * *" # Run every 2 hours
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
cleanup:
|
|
timeout-minutes: 30
|
|
name: "Cleanup Test Projects"
|
|
if: ${{ github.repository_owner == 'cloudflare' }}
|
|
runs-on: ubuntu-slim
|
|
steps:
|
|
- name: Checkout Repo
|
|
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
|
|
with:
|
|
fetch-depth: 1
|
|
persist-credentials: false
|
|
|
|
- name: Install Dependencies
|
|
uses: ./.github/actions/install-dependencies
|
|
|
|
- name: Cleanup E2E test projects
|
|
run: node -r esbuild-register tools/e2e/e2eCleanup.ts
|
|
env:
|
|
CLOUDFLARE_API_TOKEN: ${{ secrets.TEST_CLOUDFLARE_API_TOKEN }}
|
|
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.TEST_CLOUDFLARE_ACCOUNT_ID }}
|