Skip to content

Commit dd20342

Browse files
Don't run CI twice (on push AND pull request) (#2049)
1 parent a268d65 commit dd20342

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/workflows/test.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ on: [push, pull_request]
55
jobs:
66
ubuntu:
77
runs-on: ubuntu-latest
8+
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name
89
steps:
910
- name: checkout
1011
uses: actions/checkout@v4
@@ -17,6 +18,7 @@ jobs:
1718

1819
macos:
1920
runs-on: macos-latest
21+
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name
2022
steps:
2123
- name: checkout
2224
uses: actions/checkout@v4
@@ -27,6 +29,7 @@ jobs:
2729

2830
windows:
2931
runs-on: windows-latest
32+
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name
3033
steps:
3134
- name: Prepare Git for Checkout on Windows
3235
run: |

0 commit comments

Comments
 (0)