Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
version: 2
updates:
- package-ecosystem: "maven"
target-branch: "spring-boot-4"
target-branch: "main"
directory: "/"
schedule:
interval: "daily"
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ name: Build

on:
push:
branches: [ "spring-boot-4" ]
branches: [ "main" ]
paths-ignore:
- '**.md'
- 'docs/**'
- '**.adoc'
pull_request:
branches: [ "spring-boot-4" ]
branches: [ "main" ]
paths-ignore:
- '**.md'
- 'docs/**'
Expand Down Expand Up @@ -37,7 +37,7 @@ jobs:
- name: Build with Maven
run: ./mvnw --no-transfer-progress -B -T 1C install --file pom.xml

- name: Deploy SNAPSHOT to Maven Central (only on push to spring-boot-4 with Java 17)
- name: Deploy SNAPSHOT to Maven Central
if: github.event_name == 'push' && matrix.java == 17
run: |
MY_POM_VERSION=$(./mvnw -q -DforceStdout help:evaluate -Dexpression=project.version --non-recursive)
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: "Code scanning - action"

on:
push:
branches: [ "spring-boot-4" ]
branches: [ "main" ]
pull_request:
branches: [ "spring-boot-4" ]
branches: [ "main" ]
schedule:
- cron: '0 19 * * 1'

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ on:
- rc
- release
default: 'release'
branches: ["spring-boot-4"]
branches: [ "main" ]

jobs:
build:
Expand Down Expand Up @@ -82,7 +82,7 @@ jobs:
if: success()
run: . ./CI/prepare-javadocs.sh

- name: Bump SNAPSHOT version
- name: Bump SNAPSHOT version on master (final release only)
if: success() && github.event.inputs.release_type == 'release'
run: . ./CI/bump-snapshot.sh
env:
Expand Down
8 changes: 4 additions & 4 deletions CI/bump-snapshot.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ set -e

RELEASE_VERSION="${RELEASE_VERSION:?}"
CURRENT_BRANCH=$(git branch --show-current)
if [ "$CURRENT_BRANCH" != "spring-boot-4" ]; then
git checkout spring-boot-4
git pull origin spring-boot-4
if [ "$CURRENT_BRANCH" != "main" ]; then
git checkout main
git pull origin main
fi

# Compute next snapshot version: increment patch, e.g., 3.0.0 -> 3.0.1-SNAPSHOT
Expand All @@ -33,4 +33,4 @@ git config user.email "action@github.com"
git config user.name "GitHub Action"
git add -A
git commit -m "Bump version to ${NEXT_SNAPSHOT}"
git push origin spring-boot-4
git push origin main
Loading