C3 E2E Project Cleanup #2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This workflow cleans up any leftover projects created by e2e runs. | |
name: C3 E2E Project Cleanup | |
on: | |
workflow_run: | |
workflows: [C3 E2E Tests, C3 E2E Tests (Dependabot), C3 E2E (Quarantine)] | |
types: | |
- completed | |
env: | |
node-version: 18.17.1 | |
jobs: | |
cleanup: | |
name: "Cleanup Test Projects" | |
if: ${{ github.repository_owner == 'cloudflare' }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repo | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Install Dependencies | |
uses: ./.github/actions/install-dependencies | |
- name: Cleanup E2E test projects | |
run: pnpm run --filter create-cloudflare test:e2e:cleanup | |
env: | |
CLOUDFLARE_API_TOKEN: ${{ secrets.C3_TEST_CLOUDFLARE_API_TOKEN }} | |
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.C3_TEST_CLOUDFLARE_ACCOUNT_ID }} |