From e11b4cc893ad300e15c0dbfdb2dc2c13fed7b7a9 Mon Sep 17 00:00:00 2001 From: Jacob Floyd Date: Tue, 17 Dec 2024 14:35:42 -0600 Subject: [PATCH] Run benchmarks on PRs that touch benchmarks --- .github/workflows/microbenchmarks.yaml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/microbenchmarks.yaml b/.github/workflows/microbenchmarks.yaml index 3485fb74a7..8382912bb5 100644 --- a/.github/workflows/microbenchmarks.yaml +++ b/.github/workflows/microbenchmarks.yaml @@ -5,6 +5,16 @@ name: Micro Benchmarks on: schedule: - cron: '30 3 * * *' + pull_request: + types: [opened, reopened, synchronize] + branches: + # Only for PRs targeting those branches + - master + - v[0-9]+.[0-9]+ + paths: + # Only for PRs that touch the benchmarks + - .github/workflows/microbenchmarks.yaml + - st2common/benchmarks/** jobs: # Special job which automatically cancels old runs for the same branch, prevents runs for the