Browse Source

Prevent PR benchmarks to run on label changes (#2119)

This changes the trigger type for PR benchmarks back to the default (`opened`, `synchronize`, `reopened`).  As part of #2114 I added the `labeled` trigger type. This causes the benchmarks to run when the `run-benchmark` label is present and another label is added.
For example in #2116 I added the `run-benchmark` label while creating the PR. The benchmarks then where triggered six times; one for the PR creation (`opened`) and five times for each label that I initially added to the PR.

The only drawback is that the benchmarks are not triggered, when we just add the label, but unfortunately I don't have a clever idea on how to achieve that right now. We will have to add the label and then trigger the run via a `synchronize` (push).
pull/2120/head
raskad 3 years ago
parent
commit
4f8398e21f
  1. 5
      .github/workflows/pull_request.yml

5
.github/workflows/pull_request.yml

@ -4,11 +4,6 @@ on:
pull_request: pull_request:
branches: branches:
- main - main
types:
- opened
- synchronize
- reopened
- labeled
jobs: jobs:
runBenchmark: runBenchmark:

Loading…
Cancel
Save