Skip to content

Commit ca630ec

Browse files
committed
Workflow fixes..
1 parent a826e22 commit ca630ec

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

.github/workflows/ci.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: CI Workflow
22

3-
# Trigger the workflow when pushing to main (includes PR merges) or on PR events
3+
# Trigger on PR events and direct pushes to main (but not PR merges)
44
on:
55
push:
66
branches:
@@ -47,7 +47,8 @@ jobs:
4747
pytest
4848
4949
- name: Commit and push the generated .dylib file
50-
if: github.ref == 'refs/heads/main'
50+
# 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')
5152
run: |
5253
git config --local user.name "GitHub Action"
5354
git config --local user.email "action@github.com"

0 commit comments

Comments
 (0)