Skip to content

Commit

Permalink
ci: Fix destroy benchmark env workflow
Browse files Browse the repository at this point in the history
Fix the workflow and run it at 01:00 before the nightly benchmark is run.
That's because there's a limit how many reserved hosts we can provision
at a time.
  • Loading branch information
tomi committed Aug 27, 2024
1 parent be52176 commit 6884601
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/benchmark-destroy-nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Destroy Benchmark Env

on:
schedule:
- cron: '30 4 * * *'
- cron: '0 1 * * *'
workflow_dispatch:

permissions:
Expand All @@ -25,16 +25,15 @@ jobs:
tenant-id: ${{ secrets.BENCHMARK_ARM_TENANT_ID }}
subscription-id: ${{ secrets.BENCHMARK_ARM_SUBSCRIPTION_ID }}

- run: Setup node
- run: corepack enable
- uses: actions/setup-node@v4.0.2
with:
node-version: 20.x
cache: pnpm
cache: 'pnpm'

- name: Install dependencies
run: pnpm install --frozen-lockfile

- name: Destroy cloud env
if: github.event.inputs.debug == 'true'
run: pnpm destroy-cloud-env
working-directory: packages/@n8n/benchmark

0 comments on commit 6884601

Please sign in to comment.