Skip to content

Commit c683f31

Browse files
committed
Various CI/CD improvements
* Add `concurrency` for `ci-snapshot.yml` to avoid unnecessary queued builds * Add `schedule` for `ci-snapshot.yml` to run build fresh snapshots every night * Fix job name for `verify-staged-artifacts.yml` since we are not verifying against samples * Remove `maven` config for Dependabot. Looks like it does not look into sub-directories, so its config is not very convenient for our different samples
1 parent 304f280 commit c683f31

File tree

3 files changed

+12
-13
lines changed

3 files changed

+12
-13
lines changed

.github/dependabot.yml

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,3 @@ updates:
2323
- "org.awaitility:awaitility"
2424
- "com.google.code.findbugs:jsr305"
2525
- "org.springframework.boot*"
26-
27-
- package-ecosystem: "maven"
28-
directory: "/samples"
29-
schedule:
30-
interval: "weekly"
31-
day: "saturday"
32-
labels: ["type: task"]
33-
groups:
34-
development-dependencies:
35-
patterns:
36-
- "*"

.github/workflows/ci-snapshot.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,24 @@ name: CI SNAPSHOT
22

33
on:
44
workflow_dispatch:
5+
56
push:
67
branches:
78
- main
89
- '*.x'
910

11+
schedule:
12+
- cron: '0 5 * * *'
13+
14+
concurrency:
15+
group: group-snapshot-for-${{ github.ref }}
16+
cancel-in-progress: true
17+
1018
jobs:
1119
build-snapshot:
1220
uses: spring-io/spring-github-workflows/.github/workflows/spring-artifactory-gradle-snapshot.yml@v1
21+
with:
22+
gradleTasks: ${{ github.event_name == 'schedule' && '--rerun-tasks' || '' }}
1323
secrets:
1424
GRADLE_ENTERPRISE_CACHE_USER: ${{ secrets.GRADLE_ENTERPRISE_CACHE_USER }}
1525
GRADLE_ENTERPRISE_CACHE_PASSWORD: ${{ secrets.GRADLE_ENTERPRISE_CACHE_PASSWORD }}

.github/workflows/verify-staged-artifacts.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ on:
99
type: string
1010

1111
jobs:
12-
verify-staged-with-samples:
12+
verify-staged-with-spring-integration:
1313
runs-on: ubuntu-latest
1414
steps:
1515

16-
- name: Checkout Samples Repo
16+
- name: Checkout Spring Integration Repo
1717
uses: actions/checkout@v4
1818
with:
1919
repository: spring-projects/spring-integration

0 commit comments

Comments
 (0)