Skip to content

Commit fdf3002

Browse files
markpollackscionaltera
authored andcommitted
Improve continuous-integration.yml workflow controls
- Add concurrency controls to prevent overlapping CI builds - Use cancel-in-progress: true to skip builds when one is already running - Document paths-ignore pattern for future push triggers - Prevents resource conflicts from simultaneous 1.5-hour builds Since cron triggers occur every few hours, skipping overlapping builds is more efficient than queuing them. Signed-off-by: Mark Pollack <[email protected]>
1 parent c30840a commit fdf3002

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/continuous-integration.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,22 @@ on:
1616
- cron: '0 0 * * 2-6' # 1:00 AM CET / 7:00 PM EST (previous day)
1717
- cron: '30 2 * * 2-6' # 3:30 AM CET / 9:30 PM EST (previous day)
1818
workflow_dispatch:
19+
# Note: If push triggers are added in the future, they should include:
20+
# push:
21+
# paths-ignore:
22+
# - '.github/**'
23+
# - 'spring-ai-docs/**'
24+
# - '*.md'
25+
# - 'docs/**'
1926

2027
jobs:
2128
build:
2229
name: Build branch
2330
runs-on: ubuntu-latest
2431
if: ${{ github.repository_owner == 'spring-projects' }}
32+
concurrency:
33+
group: continuous-integration-${{ github.ref }}
34+
cancel-in-progress: false # Don't cancel running builds - let them complete
2535
services:
2636
ollama:
2737
image: ollama/ollama:latest

0 commit comments

Comments
 (0)