File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change 99 name : run benchmark
1010 permissions :
1111 pull-requests : write
12+
13+ # If we're running on a PR, use ubuntu-latest - a shared runner. We can't use the self-hosted
14+ # runners on arbitrary PRs, and we don't want to unleash that load on the pool anyway.
15+ # If we're running on main, use the OTEL self-hosted runner pool.
1216 runs-on : ${{ github.event_name == 'pull_request' && 'ubuntu-latest' || 'self-hosted' }}
1317 if : |
1418 ${{
1519 github.event_name == 'pull_request' && contains(github.event.pull_request.labels.*.name, 'performance') ||
1620 github.event_name == 'push'
1721 }}
1822 env :
19- BRANCH_NAME : ${{ github.event_name == 'pull_request' && github.base_ref || 'HEAD~1' }}
23+ # If we're running on a PR, diff against `main`
24+ # If we're running on main, diff against the previous commit - "HEAD~1"
25+ # BRANCH_NAME: ${{ github.event_name == 'pull_request' && github.base_ref || 'HEAD~1' }}
26+ BRANCH_NAME : " HEAD~1"
2027 steps :
2128 - uses : actions/checkout@v4
2229 - uses : arduino/setup-protoc@v3
You can’t perform that action at this time.
0 commit comments