Skip to content

Commit 6e3eedb

Browse files
committed
fix: optimize CI/CD redundancy by restricting triggers
- CI/CD build now only triggers on maintenance branches from 1.0.x - Deploy docs only triggers when documentation files change - Eliminates unnecessary builds while preserving functionality
1 parent f81a2f6 commit 6e3eedb

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

.github/workflows/continuous-integration.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ name: CI/CD build
33
on:
44
push:
55
branches:
6-
- main
76
- '*.*.x'
87
workflow_dispatch:
98

.github/workflows/deploy-docs.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,13 @@ on:
44
push:
55
branches: [main, '[0-9].[0-9].x' ]
66
tags: ['v[0-9].[0-9].[0-9]', 'v[0-9].[0-9].[0-9]-*']
7+
paths:
8+
- 'spring-ai-docs/**/*.adoc'
9+
- 'spring-ai-docs/**/antora.yml'
10+
- 'spring-ai-docs/**/antora-playbook.yml'
11+
- 'spring-ai-docs/pom.xml'
12+
- 'spring-ai-docs/src/main/javadoc/**'
13+
- '.github/workflows/deploy-docs.yml'
714
permissions:
815
actions: write
916
jobs:

0 commit comments

Comments
 (0)