Removing benchmarking from PR triggers (#800)

The benchmarking workflow cannot run successfully on the PR as it
requires access to secrets which are not available in PR contexts.

This commit removes that trigger and adds a trigger on pushes to
branches starting with "bench/" so that testing can be done before
merging to main by those with write access.
This commit is contained in:
Matthew Parkinson
2025-10-20 09:31:55 +01:00
committed by GitHub
parent fbedb31504
commit 198f1fc464

View File

@@ -10,11 +10,13 @@ concurrency:
on: on:
schedule: schedule:
- cron: "0 0 * * 1" # Runs every Monday at midnight UTC - cron: "0 0 * * 1" # Runs every Monday at midnight UTC
# Triggers the workflow on push or pull request events but only for the master branch # Triggers the workflow on push to main or any branch starting bench.
# The bench/** branches can be used for test before merge any PR that
# might regress performance.
push: push:
branches: [ main ] branches:
pull_request: - 'main'
branches: [ main ] - 'bench/**'
# Allows you to run this workflow manually from the Actions tab # Allows you to run this workflow manually from the Actions tab
workflow_dispatch: workflow_dispatch: