Skip to content

Commit 0a0b81c

Browse files
committed
testing - will revert
1 parent 7572619 commit 0a0b81c

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/pr_criterion.yaml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,21 @@ jobs:
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

0 commit comments

Comments
 (0)