Skip to content

Commit dac4a2c

Browse files
Clare72claude
andcommitted
CI: restrict push trigger to main/dev to avoid duplicate runs on PRs
python-test.yml and examples.yml declared both 'on: push' and 'on: pull_request' with no branch filter, so a push to a PR branch triggered each workflow twice (once for push on the branch HEAD, once for pull_request on the merge commit). Filtering the push trigger to [main, dev] (matching performance-test.yml) means feature-branch pushes run only the pull_request instance. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 399888e commit dac4a2c

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

.github/workflows/examples.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
name: Test VFBquery Examples
22
on:
33
push:
4+
branches: [ main, dev ] # avoid a duplicate run on PR-branch pushes (the pull_request event already covers those)
45
pull_request:
6+
branches: [ main, dev ]
57
workflow_dispatch: # Enables manual triggering
68
schedule:
79
- cron: '0 0 1 * *' # Runs at 00:00 UTC on the 1st day of every month

.github/workflows/python-test.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@ name: Python Package using Conda
22

33
on:
44
push:
5+
branches: [ main, dev ] # avoid a duplicate run on PR-branch pushes (the pull_request event already covers those)
56
pull_request:
7+
branches: [ main, dev ]
68
workflow_dispatch: # Enables manual triggering
79
schedule:
810
- cron: '0 0 2 * *' # Runs at 00:00 UTC on the 2nd day of every month

0 commit comments

Comments
 (0)