File tree Expand file tree Collapse file tree 1 file changed +1
-12
lines changed Expand file tree Collapse file tree 1 file changed +1
-12
lines changed Original file line number Diff line number Diff line change @@ -15,20 +15,9 @@ permissions:
15
15
16
16
jobs :
17
17
run_benchmarks :
18
+ if : " !contains(github.event.pull_request.title, '[no benchmark]') && !contains(github.event.pull_request.body, '[no benchmark]')"
18
19
runs-on : ubuntu-latest
19
20
steps :
20
- - name : Check for '[no benchmark]' in PR
21
- id : check-no-benchmark
22
- run : |
23
- if [[ "${{ github.event.pull_request.title }}" == *"[no benchmark]"* ]] || [[ "${{ github.event.pull_request.body }}" == *"[no benchmark]"* ]]; then
24
- echo "Skipping benchmarks because '[no benchmark]' is found in the PR title or body."
25
- echo "skip_benchmark=true" >> $GITHUB_ENV
26
- else
27
- echo "skip_benchmark=false" >> $GITHUB_ENV
28
- fi
29
- - name : Exit if skipping benchmarks
30
- if : env.skip_benchmark == 'true'
31
- run : exit 0
32
21
- uses : actions/checkout@v4
33
22
with :
34
23
fetch-depth : 0 # fetch all history
You can’t perform that action at this time.
0 commit comments