We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5d7a4ab commit 99c9baeCopy full SHA for 99c9bae
.github/workflows/ci.yml
@@ -1,10 +1,17 @@
1
name: CI Workflow
2
3
-# Trigger the workflow when pushing to main (includes PR merges)
+# Trigger the workflow when pushing to main (includes PR merges) or on PR events
4
on:
5
push:
6
branches:
7
- main
8
+ pull_request:
9
+ branches:
10
+ - main
11
+ types:
12
+ - opened
13
+ - synchronize
14
+ - reopened
15
16
# Define the jobs to run in the workflow
17
jobs:
@@ -40,6 +47,7 @@ jobs:
40
47
pytest
41
48
42
49
- name: Commit and push the generated .dylib file
50
+ if: github.ref == 'refs/heads/main'
43
51
run: |
44
52
git config --local user.name "GitHub Action"
45
53
git config --local user.email "action@github.com"
0 commit comments