Skip to content

Commit 63a7979

Browse files
authored
Merge pull request #1147 from Scriptwonder/ci/avoid-duplicate-test-runs-on-beta
ci: stop firing unity-tests/python-tests twice on beta and main pushes
2 parents 5d8b7be + 09daa42 commit 63a7979

2 files changed

Lines changed: 12 additions & 2 deletions

File tree

.github/workflows/python-tests.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,11 @@ name: Python Tests
22

33
on:
44
push:
5-
branches: ["**"]
5+
# Exclude beta and main: those branches re-trigger this workflow via
6+
# workflow_call from beta-release.yml / release.yml. Without the exclusion,
7+
# a push to beta that touches Server/** fires this workflow twice for the
8+
# same SHA, and GitHub auto-cancels the duplicate.
9+
branches-ignore: [beta, main]
610
paths:
711
- Server/**
812
- .github/workflows/python-tests.yml

.github/workflows/unity-tests.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,13 @@ on:
1010
required: false
1111
default: ""
1212
push:
13-
branches: ["**"]
13+
# Exclude beta and main: those branches re-trigger this workflow via
14+
# workflow_call from beta-release.yml / release.yml. Without the exclusion,
15+
# a push to beta that touches MCPForUnity/** fires this workflow twice
16+
# for the same SHA, and GitHub's auto-generated concurrency group
17+
# (`unity-tests-refs/heads/beta`) cancels the older run with the noisy
18+
# "higher priority waiting request" annotation.
19+
branches-ignore: [beta, main]
1420
paths:
1521
- TestProjects/UnityMCPTests/**
1622
- MCPForUnity/Editor/**

0 commit comments

Comments
 (0)