We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a826e22 commit ca630ecCopy full SHA for ca630ec
1 file changed
.github/workflows/ci.yml
@@ -1,6 +1,6 @@
1
name: CI Workflow
2
3
-# Trigger the workflow when pushing to main (includes PR merges) or on PR events
+# Trigger on PR events and direct pushes to main (but not PR merges)
4
on:
5
push:
6
branches:
@@ -47,7 +47,8 @@ jobs:
47
pytest
48
49
- name: Commit and push the generated .dylib file
50
- if: github.ref == 'refs/heads/main'
+ # Skip if this is a PR merge (indicated by commit message containing "Merge pull request")
51
+ if: github.event_name == 'pull_request' || !contains(github.event.head_commit.message, 'Merge pull request')
52
run: |
53
git config --local user.name "GitHub Action"
54
git config --local user.email "action@github.com"
0 commit comments