Commit a118054 1 parent abc048a commit a118054 Copy full SHA for a118054
File tree 2 files changed +16
-1
lines changed
2 files changed +16
-1
lines changed Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+
3
+ latestGradle=$( curl -s https://services.gradle.org/versions/current | jq -r ' .version' )
4
+
5
+ if [[ -n $latestGradle ]]; then
6
+ # YML pipeline files and more - Version
7
+ echo " Scanning for yml files including GitHub action files..."
8
+ for f in $( find . -name " *.yml" ) ; do
9
+ sed -E " s/gradle-version\: [0-9\.[a-z]]/gradle-version: '$latestGradle '/g" " $f " > " $f " " 01"
10
+ mv " $f " " 01" " $f "
11
+ done
12
+ ./gradlew build
13
+ else
14
+ echo " Unable to read latest Java LTS version!"
15
+ fi
Original file line number Diff line number Diff line change 1
1
#! /usr/bin/env bash
2
2
3
- latestJavaLTS=$( curl -s https://api.adoptopenjdk.net/v3/info/available_releases | jq ' .most_recent_lts' )
3
+ latestJavaLTS=$( curl -s https://api.adoptopenjdk.net/v3/info/available_releases | jq ' .most_recent_lts' )
4
4
distribution=" adopt"
5
5
targetImage=" eclipse-temurin:21-alpine"
6
6
You can’t perform that action at this time.
0 commit comments