File tree Expand file tree Collapse file tree 2 files changed +17
-3
lines changed Expand file tree Collapse file tree 2 files changed +17
-3
lines changed Original file line number Diff line number Diff line change @@ -103,8 +103,22 @@ jobs:
103103 - name : Store S3 Paths
104104 id : s3-paths
105105 run : |
106- dist_path=`cat ${{ github.workspace }}/eclipse-distribution/org.springframework.boot.ide.product.${{ inputs.eclipse_profile }}/target/s3-dist-path.txt`
107- p2_path=`cat ${{ github.workspace }}/eclipse-distribution/org.springframework.boot.ide.product.${{ inputs.eclipse_profile }}/target/s3-p2-repo-dist-path.txt`
106+ eclipse_version=${eclipse_profile:0:2}.${eclipse_profile:2}
107+ build_type=${{ inputs.build_type }}
108+ if [[ "$build_type" == "snapshot" ]]; then
109+ dist_path=${{ inputs.build_type }}/dist/$eclipse_version
110+ p2_path=${{ inputs.build_type }}/update/$eclipse_version
111+ else
112+ cd eclipse-distributions
113+ version=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)
114+ version_segment="${version%%-*}"
115+ p2_qualifier=${{ inputs.p2-qualifier }}
116+ if ! [[ -z ${p2_qualifier} ]]; then
117+ version_segment="${version_segment}.${p2_qualifier}
118+ fi
119+ dist_path=${{ inputs.build_type }}/dist/$version_segment/$eclipse_version
120+ p2_path=${{ inputs.build_type }}/update/$version_segment/$eclipse_version
121+ fi
108122 echo "dist_path=$dist_path" >> $GITHUB_OUTPUT
109123 echo "p2_path=$p2_path" >> $GITHUB_OUTPUT
110124 - name : Upload P2 Repo Build Artifacts
Original file line number Diff line number Diff line change 7676 <dist .pathpostfix>nightly</dist .pathpostfix>
7777 <dist .path>${dist.type} /${dist.key} /${dist.project} /${dist.pathpostfix} </dist .path>
7878
79- <sts4-language-servers-p2-repo >https://cdn.spring.io/spring-tools/${dist.type} /TOOLS/sts4- language-server-integrations/${sts-language-servers-version} </sts4-language-servers-p2-repo >
79+ <sts4-language-servers-p2-repo >https://cdn.spring.io/spring-tools/${dist.type} /language-server-integrations/${sts-language-servers-version} </sts4-language-servers-p2-repo >
8080
8181 <tycho-version >4.0.12</tycho-version >
8282 <encoding >UTF-8</encoding >
You can’t perform that action at this time.
0 commit comments