Skip to content

Commit c7fdd40

Browse files
committed
update ci
1 parent 5a81165 commit c7fdd40

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

.github/workflows/job-upgrade-spring-boot.yaml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Update Spring Boot Version
1+
name: Upgrade Spring Boot Version
22

33
on:
44
schedule:
@@ -17,25 +17,27 @@ jobs:
1717
uses: actions/checkout@v4
1818

1919
- name: Upgrade Spring Boot
20+
id: upgrade_spring_boot
2021
run: |
2122
latest_version=$(curl -s 'https://repo1.maven.org/maven2/org/springframework/boot/spring-boot/maven-metadata.xml' | grep "<latest>" | sed 's/.*<latest>\(.*\)<\/latest>.*/\1/')
2223
echo "Latest Spring Boot version: $latest_version"
2324
2425
current_version=$(grep 'springBootVersion' gradle.properties | cut -d'=' -f2)
2526
echo "Current Spring Boot version: $current_version"
2627
28+
echo "current_version=$current_version" >> $GITHUB_ENV
29+
echo "latest_version=$latest_version" >> $GITHUB_ENV
30+
2731
if [ "$current_version" == "$latest_version" ]; then
2832
echo "Spring Boot version is up to date"
2933
exit 0
3034
fi
3135
3236
sed -i "s/^springBootVersion=.*/springBootVersion=$latest_version/" gradle.properties
3337
sed -i "s/^version=.*/version=${latest_version}-SNAPSHOT/" gradle.properties
34-
35-
echo "current_version=$current_version" >> $GITHUB_ENV
36-
echo "latest_version=$latest_version" >> $GITHUB_ENV
3738
3839
- name: Create Pull Request
40+
if: env.latest_version != env.current_version
3941
uses: peter-evans/create-pull-request@v7
4042
with:
4143
commit-message: "Update Spring Boot version to ${{ env.latest_version }}"

website/docs/40-configuration-properties.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,4 @@ This page was generated by [spring-configuration-property-documenter](https://gi
4141
|---|----|-----------|-------------|-----------|
4242
| enabled| java.lang.Boolean| Whether to enable refresh exchange clients, default \{@code false}. &lt;p&gt; This feature needs \{@code spring-cloud-context} dependency in the classpath. &lt;p color&#x3D;&quot;orange&quot;&gt; NOTE: This feature is not supported by native image. @see &lt;a href&#x3D;&quot;https://github.com/spring-cloud/spring-cloud-release/wiki/AOT-transformations-and-native-image-support#refresh-scope&quot;&gt;Refresh Scope&lt;/a&gt;| false| |
4343

44-
This is a generated file, generated at: **2024-09-21T17:40:42.716102**
44+
This is a generated file, generated at: **2024-09-21T17:47:54.330487**

0 commit comments

Comments
 (0)