|
6 | 6 | - 'main' |
7 | 7 | - '[0-9].[0-9].x' |
8 | 8 | - 'workflows-rework-main' |
| 9 | + schedule: |
| 10 | + - cron: '30 11 * * 1-5' # 12:30 PM CET / 6:30 AM EST |
| 11 | + |
| 12 | +concurrency: |
| 13 | + group: ${{ github.workflow }}-${{ github.ref }} |
| 14 | + cancel-in-progress: true |
9 | 15 |
|
10 | 16 | jobs: |
11 | 17 | build-all: |
12 | 18 | name: Build all modules |
13 | 19 | runs-on: ubuntu-latest |
14 | 20 | if: ${{ github.repository_owner == 'spring-projects' }} |
15 | 21 | steps: |
16 | | - - name: Print type |
17 | | - run: | |
18 | | - echo "Type ${{ github.event_name }}" |
19 | | -
|
20 | 22 | - name: Checkout source code |
21 | 23 | uses: actions/checkout@v4 |
22 | 24 |
|
|
28 | 30 | cache: 'maven' |
29 | 31 |
|
30 | 32 | - name: Setup Maven Build-Cache (~/.m2/build-cache) |
| 33 | + if: ${{ github.event_name != 'schedule' }} |
31 | 34 | uses: actions/cache@v4 |
32 | 35 | with: |
33 | 36 | path: ~/.m2/build-cache |
|
77 | 80 |
|
78 | 81 | - name: Setup Maven Build-Cache (~/.m2/build-cache) |
79 | 82 | uses: actions/cache@v4 |
| 83 | + if: ${{ github.event_name != 'schedule' }} |
80 | 84 | with: |
81 | 85 | path: ~/.m2/build-cache |
82 | 86 | key: build-cache-${{ runner.os }}-ollama-${{ hashFiles('**/pom.xml') }} |
@@ -194,11 +198,11 @@ jobs: |
194 | 198 | -Dfailsafe.rerunFailingTestsCount=3 \ |
195 | 199 | verify |
196 | 200 |
|
197 | | - generate-artifacts: |
| 201 | + generate-javadocs: |
198 | 202 | name: Generate and upload javadocs |
199 | 203 | runs-on: ubuntu-latest |
200 | 204 | needs: [build-all, test-ollama, test-openai, test-remaining] |
201 | | - if: ${{ github.repository_owner == 'spring-projects' }} |
| 205 | + if: ${{ github.repository_owner == 'spring-projects' && github.event_name != 'schedule'}} |
202 | 206 | steps: |
203 | 207 | - name: Checkout source code |
204 | 208 | uses: actions/checkout@v4 |
@@ -249,7 +253,7 @@ jobs: |
249 | 253 | name: Deploy to Artifactory |
250 | 254 | runs-on: ubuntu-latest |
251 | 255 | needs: [build-all, test-ollama, test-openai, test-remaining] |
252 | | - if: ${{ github.repository_owner == 'spring-projects' }} |
| 256 | + if: ${{ github.repository_owner == 'spring-projects' && github.event_name != 'schedule' }} |
253 | 257 | steps: |
254 | 258 | - name: Checkout source code |
255 | 259 | uses: actions/checkout@v4 |
|
0 commit comments