Skip to content

Commit 629f404

Browse files
Adjust triggers to avoid duplicate jobs on push to branches with a PR
1 parent 099a54c commit 629f404

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/conda-package.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
name: Conda package
22

3-
on: [push, pull_request]
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
48

59
env:
610
PACKAGE_NAME: dpctl
@@ -268,7 +272,6 @@ jobs:
268272
269273
test_examples_linux:
270274
needs: build_linux
271-
if: ${{ github.event.pull_request }}
272275
runs-on: ${{ matrix.runner }}
273276
strategy:
274277
matrix:

0 commit comments

Comments
 (0)