Skip to content

Commit

Permalink
Various CI/CD improvements
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
artembilan committed Jan 2, 2024
1 parent 304f280 commit c683f31
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 13 deletions.
11 changes: 0 additions & 11 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,3 @@ updates:
- "org.awaitility:awaitility"
- "com.google.code.findbugs:jsr305"
- "org.springframework.boot*"

- package-ecosystem: "maven"
directory: "/samples"
schedule:
interval: "weekly"
day: "saturday"
labels: ["type: task"]
groups:
development-dependencies:
patterns:
- "*"
10 changes: 10 additions & 0 deletions .github/workflows/ci-snapshot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,24 @@ name: CI SNAPSHOT

on:
workflow_dispatch:

push:
branches:
- main
- '*.x'

schedule:
- cron: '0 5 * * *'

concurrency:
group: group-snapshot-for-${{ github.ref }}
cancel-in-progress: true

jobs:
build-snapshot:
uses: spring-io/spring-github-workflows/.github/workflows/spring-artifactory-gradle-snapshot.yml@v1
with:
gradleTasks: ${{ github.event_name == 'schedule' && '--rerun-tasks' || '' }}
secrets:
GRADLE_ENTERPRISE_CACHE_USER: ${{ secrets.GRADLE_ENTERPRISE_CACHE_USER }}
GRADLE_ENTERPRISE_CACHE_PASSWORD: ${{ secrets.GRADLE_ENTERPRISE_CACHE_PASSWORD }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/verify-staged-artifacts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ on:
type: string

jobs:
verify-staged-with-samples:
verify-staged-with-spring-integration:
runs-on: ubuntu-latest
steps:

- name: Checkout Samples Repo
- name: Checkout Spring Integration Repo
uses: actions/checkout@v4
with:
repository: spring-projects/spring-integration
Expand Down

0 comments on commit c683f31

Please sign in to comment.