Skip to content

Commit e15917c

Browse files
committed
cpu_pytorch
1 parent 6e1e64a commit e15917c

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/benchmark_cpu_pytorch.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
- cron: "0 0 * * *"
77
push:
88
branches:
9-
- main
9+
- '*'
1010
pull_request:
1111

1212
concurrency:
@@ -19,13 +19,14 @@ env:
1919
jobs:
2020
run_benchmarks:
2121
if: ${{
22-
(github.event_name == 'push') ||
22+
(github.event_name == 'push' && contains(github.event.head_commit.message, 'cpu_pytorch')) ||
23+
(github.event_name == 'push') && github.ref == 'refs/heads/main' ||
2324
(github.event_name == 'workflow_dispatch') ||
2425
contains( github.event.pull_request.labels.*.name, 'leaderboard') ||
2526
contains( github.event.pull_request.labels.*.name, 'cpu') ||
2627
contains( github.event.pull_request.labels.*.name, 'pytorch') ||
2728
contains( github.event.pull_request.labels.*.name, 'cpu_pytorch') ||
28-
contains( github.event.head_commit.message, 'cpu_pytorch')
29+
2930
}}
3031

3132
strategy:

0 commit comments

Comments
 (0)