File tree 2 files changed +39
-2
lines changed
2 files changed +39
-2
lines changed Original file line number Diff line number Diff line change
1
+ {
2
+ "files" : [
3
+ {
4
+ "aql" : {
5
+ "items.find" : {
6
+ "$and" : [
7
+ {
8
+ "@build.name" : "${buildName}" ,
9
+ "@build.number" : "${buildNumber}"
10
+ }
11
+ ]
12
+ }
13
+ },
14
+ "target" : "nexus/"
15
+ }
16
+ ]
17
+ }
Original file line number Diff line number Diff line change 33
33
name : Promote
34
34
runs-on : ubuntu-latest
35
35
steps :
36
- - name : Promote
37
- run : echo "Promote happens here"
36
+ - name : Check Out
37
+ uses : actions/checkout@v4
38
+ - name : Set Up JFrog CLI
39
+ uses : jfrog/setup-jfrog-cli@7c95feb32008765e1b4e626b078dfd897c4340ad # v4.1.2
40
+ env :
41
+ JF_ENV_SPRING : ${{ secrets.JF_ARTIFACTORY_SPRING }}
42
+ - name : Download Release Artifacts
43
+ shell : bash
44
+ run : jf rt download --spec ./.github/artifacts.spec --spec-vars 'buildName=${{ format('spring-javaformat-{0}', inputs.version) }};buildNumber=${{ inputs.build-number }}'
45
+ - name : Check Maven Central Sync Status
46
+ id : check-sync-status
47
+ run : |
48
+ url=${{ format('https://repo.maven.apache.org/maven2/io/spring/javaformat/spring-javaformat/{0}/spring-javaformat-{0}.pom', inputs.version) }}
49
+ status_code=$( curl --write-out '%{http_code}' --head --silent --output /dev/null ${url} )
50
+ if [ "${status_code}" != 200 ] && [ "${status_code}" != 404 ]; then
51
+ echo "Unexpected status code ${status_code}"
52
+ exit 1
53
+ fi
54
+ echo "status-code=${status_code}" >> $GITHUB_OUTPUT
55
+ - name : Sync to Maven Central
56
+ run : echo "Sync Here"
57
+ if : ${{ steps.check-sync-status.outputs.status-code == '404' }}
You can’t perform that action at this time.
0 commit comments