File tree 10 files changed +42
-27
lines changed
10 files changed +42
-27
lines changed Original file line number Diff line number Diff line change
1
+ name : Await HTTP Resource
2
+ description : Waits for an HTTP resource to be available (a HEAD request succeeds)
3
+ inputs :
4
+ url :
5
+ description : ' The URL of the resource to await'
6
+ required : true
7
+ runs :
8
+ using : composite
9
+ steps :
10
+ - name : Await HTTP resource
11
+ shell : bash
12
+ run : |
13
+ url=${{ inputs.url }}
14
+ echo "Waiting for $url"
15
+ until curl --fail --head --silent ${{ inputs.url }} > /dev/null
16
+ do
17
+ echo "."
18
+ sleep 60
19
+ done
20
+ echo "$url is available"
Original file line number Diff line number Diff line change @@ -5,10 +5,10 @@ inputs:
5
5
required : false
6
6
default : ' 17'
7
7
description : ' The Java version to compile and test with'
8
- java-distribution :
8
+ java-early-access :
9
9
required : false
10
- default : ' liberica '
11
- description : ' The Java distribution to use for the build '
10
+ default : ' false '
11
+ description : ' Whether the Java version is in early access '
12
12
java-toolchain :
13
13
required : false
14
14
default : ' false'
35
35
with :
36
36
develocity-access-key : ${{ inputs.develocity-access-key }}
37
37
java-version : ${{ inputs.java-version }}
38
- java-distribution : ${{ inputs.java-distribution }}
38
+ java-early-access : ${{ inputs.java-early-access }}
39
39
java-toolchain : ${{ inputs.java-toolchain }}
40
40
- name : Build
41
41
id : build
Original file line number Diff line number Diff line change @@ -2,10 +2,10 @@ name: Create GitHub Release
2
2
description : Create the release on GitHub with a changelog
3
3
inputs :
4
4
milestone :
5
- description : ' Name of the GitHub milestone for which a release will be created'
5
+ description : Name of the GitHub milestone for which a release will be created
6
6
required : true
7
7
token :
8
- description : ' Token to use for authentication with GitHub'
8
+ description : Token to use for authentication with GitHub
9
9
required : true
10
10
runs :
11
11
using : composite
Original file line number Diff line number Diff line change @@ -5,10 +5,10 @@ inputs:
5
5
required : false
6
6
default : ' 17'
7
7
description : ' The Java version to use for the build'
8
- java-distribution :
8
+ java-early-access :
9
9
required : false
10
- default : ' liberica '
11
- description : ' The Java distribution to use for the build '
10
+ default : ' false '
11
+ description : ' Whether the Java version is in early access '
12
12
java-toolchain :
13
13
required : false
14
14
default : ' false'
@@ -22,12 +22,12 @@ runs:
22
22
- name : Set Up Java
23
23
uses : actions/setup-java@v4
24
24
with :
25
- distribution : ${{ inputs.java-distribution }}
25
+ distribution : ${{ inputs.java-early-access == 'true' && 'temurin' || 'liberica' }}
26
26
java-version : |
27
- ${{ inputs.java-version }}
27
+ ${{ inputs.java-early-access == 'true' && format('{0}-ea', inputs.java-version) || inputs.java- version }}
28
28
${{ inputs.java-toolchain == 'true' && '17' || '' }}
29
29
- name : Set Up Gradle
30
- uses : gradle/actions/setup-gradle@dbbdc275be76ac10734476cc723d82dfe7ec6eda # v3.4.2
30
+ uses : gradle/actions/setup-gradle@d9c87d481d55275bb5441eef3fe0e46805f9ef70 # v3.5.0
31
31
with :
32
32
cache-read-only : false
33
33
develocity-access-key : ${{ inputs.develocity-access-key }}
Original file line number Diff line number Diff line change 20
20
using : composite
21
21
steps :
22
22
- name : Set Up JFrog CLI
23
- uses : jfrog/setup-jfrog-cli@7c95feb32008765e1b4e626b078dfd897c4340ad # v4.1.2
23
+ uses : jfrog/setup-jfrog-cli@105617d23456a69a92485207c4f28ae12297581d # v4.2.1
24
24
env :
25
25
JF_ENV_SPRING : ${{ inputs.jfrog-cli-config-token }}
26
26
- name : Download Release Artifacts
38
38
release : true
39
39
generate-checksums : true
40
40
- name : Await
41
- shell : bash
42
- run : |
43
- url=${{ format('https://repo.maven.apache.org/maven2/org/springframework/spring-context/{0}/spring-context-{0}.jar', inputs.spring-framework-version) }}
44
- echo "Waiting for $url"
45
- until curl --fail --head --silent $url > /dev/null
46
- do
47
- echo "."
48
- sleep 60
49
- done
50
- echo "$url is available"
41
+ uses : ./.github/actions/await-http-resource
42
+ with :
43
+ url : ${{ format('https://repo.maven.apache.org/maven2/org/springframework/spring-context/{0}/spring-context-{0}.jar', inputs.spring-framework-version) }}
Original file line number Diff line number Diff line change 9
9
build-and-deploy-snapshot :
10
10
name : Build and Deploy Snapshot
11
11
runs-on : ubuntu-latest
12
+ timeout-minutes : 60
12
13
if : ${{ github.repository == 'spring-projects/spring-framework' }}
13
14
steps :
14
15
- name : Check Out Code
Original file line number Diff line number Diff line change 9
9
ci :
10
10
name : ' ${{ matrix.os.name}} | Java ${{ matrix.java.version}}'
11
11
runs-on : ${{ matrix.os.id }}
12
+ timeout-minutes : 60
12
13
if : ${{ github.repository == 'spring-projects/spring-framework' }}
13
14
strategy :
14
15
matrix :
39
40
uses : ./.github/actions/build
40
41
with :
41
42
java-version : ${{ matrix.java.version }}
42
- java-distribution : ${{ matrix.java.distribution || 'liberica ' }}
43
+ java-early-access : ${{ matrix.java.early-access || 'false ' }}
43
44
java-toolchain : ${{ matrix.java.toolchain }}
44
45
develocity-access-key : ${{ secrets.GRADLE_ENTERPRISE_SECRET_ACCESS_KEY }}
45
46
- name : Send Notification
Original file line number Diff line number Diff line change 74
74
runs-on : ubuntu-latest
75
75
steps :
76
76
- name : Set up JFrog CLI
77
- uses : jfrog/setup-jfrog-cli@7c95feb32008765e1b4e626b078dfd897c4340ad # v4.1.2
77
+ uses : jfrog/setup-jfrog-cli@105617d23456a69a92485207c4f28ae12297581d # v4.2.1
78
78
env :
79
79
JF_ENV_SPRING : ${{ secrets.JF_ARTIFACTORY_SPRING }}
80
80
- name : Promote build
Original file line number Diff line number Diff line change 8
8
runs-on : ubuntu-latest
9
9
steps :
10
10
- uses : actions/checkout@v4
11
- - uses : gradle/actions/wrapper-validation@dbbdc275be76ac10734476cc723d82dfe7ec6eda # v3.4.2
11
+ - uses : gradle/actions/wrapper-validation@d9c87d481d55275bb5441eef3fe0e46805f9ef70 # v3.5.0
Original file line number Diff line number Diff line change 40
40
distribution : ' liberica'
41
41
java-version : 17
42
42
- name : Set Up Gradle
43
- uses : gradle/actions/setup-gradle@dbbdc275be76ac10734476cc723d82dfe7ec6eda # v3.4.2
43
+ uses : gradle/actions/setup-gradle@d9c87d481d55275bb5441eef3fe0e46805f9ef70 # v3.5.0
44
44
with :
45
45
cache-read-only : false
46
46
- name : Configure Gradle Properties
You can’t perform that action at this time.
0 commit comments