We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 18e8718 commit e46e07eCopy full SHA for e46e07e
.github/workflows/pr_criterion.yaml
@@ -1,12 +1,20 @@
1
-on: [pull_request]
+on:
2
+ pull_request:
3
+ push:
4
+ branches:
5
+ - main
6
name: benchmark pull requests
7
jobs:
8
runBenchmark:
9
name: run benchmark
10
permissions:
11
pull-requests: write
- runs-on: self-hosted
- if: ${{ contains(github.event.pull_request.labels.*.name, 'performance') }}
12
+ runs-on: ${{ github.event_name == 'pull_request' && 'self-hosted' || 'ubuntu-latest' }}
13
+ if: |
14
+ ${{
15
+ github.event_name == 'pull_request' && contains(github.event.pull_request.labels.*.name, 'performance') ||
16
+ github.event_name == 'push'
17
+ }}
18
steps:
19
- uses: actions/checkout@v4
20
- uses: arduino/setup-protoc@v3
0 commit comments