Skip to content
forked from pydata/xarray

Commit fdabf3b

Browse files
authored
Only run asv benchmark when labeled (pydata#5893)
* Only run benchmark when labeled * Update benchmarks.yml * Update benchmarks.yml
1 parent 26e2e61 commit fdabf3b

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

.github/workflows/benchmarks.yml

+1-4
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,7 @@ on:
77

88
jobs:
99
benchmark:
10-
if: |
11-
${{ contains( github.event.pull_request.labels.*.name, 'run-benchmark')
12-
&& github.event_name == 'pull_request'
13-
|| github.event_name == 'workflow_dispatch' }}
10+
if: ${{ contains( github.event.pull_request.labels.*.name, 'run-benchmark') && github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch' }}
1411
name: Linux
1512
runs-on: ubuntu-20.04
1613
env:

0 commit comments

Comments
 (0)