Skip to content

Commit b17409b

Browse files
MNT add condition for asv benchmarks (#141)
1 parent 544cc5a commit b17409b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/asv.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,9 @@ jobs:
2323
fetch-depth: 0
2424

2525
- name: Set up main branch
26+
if: github.event_name == 'pull_request'
2627
run: |
27-
git branch -f main origin/main
28+
git branch main origin/main
2829
2930
- uses: prefix-dev/[email protected]
3031
with:
@@ -55,8 +56,9 @@ jobs:
5556
fetch-depth: 0
5657

5758
- name: Set up main branch
59+
if: github.event_name == 'pull_request'
5860
run: |
59-
git branch -f main origin/main
61+
git branch main origin/main
6062
6163
- name: Prepare previous ASV results
6264
uses: actions/checkout@v5

0 commit comments

Comments
 (0)