Skip to content

Commit be5c86c

Browse files
BornToBeRootclaude
andauthored
CI: AppVeyor: Branch builds only for main and release tags (#3682)
skip_branch_with_pr only works for pushes after the PR exists. The first push of a branch (e.g. Dependabot pushes and opens the PR within seconds, #3678 / #3681) is still built as branch build, which blocks the single AppVeyor job for nothing. Other branches are only built as PR now; the branch filter also applies to tag names, so release tags are included via a pattern. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
1 parent 9b82ee0 commit be5c86c

2 files changed

Lines changed: 8 additions & 3 deletions

File tree

‎AGENTS.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ The website is deployed to GitHub Pages at: https://borntoberoot.net/NETworkMana
190190
architecture, only for tags). PRs only build the application (`NETworkManager.csproj`) unless they change
191191
`Source/NETworkManager.Setup/`, branches and tags the setup (`NETworkManager.Setup.wixproj`)
192192
- Runs the unit tests (`Source/NETworkManager.Tests`, `dotnet test --project`)
193-
- Branches with an open PR are only built as PR (`skip_branch_with_pr`)
193+
- Branch builds only for `main` and release tags (`branches: only`), other branches are only built as PR
194194
- Ends successfully without building if only docs / website / repository files changed (`Website/`, `.github/`,
195195
`.claude/`, `Images/`, `Chocolatey/`, `WinGet/`, `Tests/Environments/`, `*.md`, `LICENSE`), so Mergify still gets a
196196
green status. Tags are always built. Branch builds (e.g. `main`) only see the last commit, so they are only skipped

‎appveyor.yml‎

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,13 @@ environment:
99
# Shallow clone - the history isn't needed (the version is date based). Must stay > 1, the docs-only check below
1010
# compares HEAD with HEAD~1.
1111
clone_depth: 50
12-
# Branches with an open PR are built as PR (merge commit) only - Mergify waits for that status.
13-
skip_branch_with_pr: true
12+
# Branch builds only for main and release tags (e.g. 2026.10.24.0 - the filter also applies to tag names). Other
13+
# branches are only built as PR (merge commit), Mergify waits for that status. skip_branch_with_pr is not enough, the
14+
# first push of a branch (e.g. by Dependabot) is built before the PR exists. PRs to main are not affected by "only".
15+
branches:
16+
only:
17+
- main
18+
- /^\d+\.\d+\.\d+/
1419
install:
1520
- ps: |
1621
# Skip the build if only docs / website / repository files changed. Exit-AppveyorBuild ends the build

0 commit comments

Comments
 (0)