File tree Expand file tree Collapse file tree 7 files changed +36
-23
lines changed Expand file tree Collapse file tree 7 files changed +36
-23
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
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
27
${{ inputs.java-version }}
28
28
${{ inputs.java-toolchain == 'true' && '17' || '' }}
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@8bab65dc312163b065ac5b03de6f6a5bdd1bec41 # v4.1.3
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 45
45
uses : ./.github/actions/build
46
46
with :
47
47
java-version : ${{ matrix.java.version }}
48
- java-distribution : ${{ matrix.java.distribution || 'liberica ' }}
48
+ java-early-access : ${{ matrix.java.early-access || 'false ' }}
49
49
java-toolchain : ${{ matrix.java.toolchain }}
50
50
develocity-access-key : ${{ secrets.GRADLE_ENTERPRISE_SECRET_ACCESS_KEY }}
51
51
- name : Send Notification
Original file line number Diff line number Diff line change 73
73
runs-on : ubuntu-latest
74
74
steps :
75
75
- name : Set up JFrog CLI
76
- uses : jfrog/setup-jfrog-cli@8bab65dc312163b065ac5b03de6f6a5bdd1bec41 # v4.1.3
76
+ uses : jfrog/setup-jfrog-cli@105617d23456a69a92485207c4f28ae12297581d # v4.2.1
77
77
env :
78
78
JF_ENV_SPRING : ${{ secrets.JF_ARTIFACTORY_SPRING }}
79
79
- name : Promote build
You can’t perform that action at this time.
0 commit comments