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:
103
103
- name : Store S3 Paths
104
104
id : s3-paths
105
105
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
108
122
echo "dist_path=$dist_path" >> $GITHUB_OUTPUT
109
123
echo "p2_path=$p2_path" >> $GITHUB_OUTPUT
110
124
- name : Upload P2 Repo Build Artifacts
Original file line number Diff line number Diff line change 76
76
<dist .pathpostfix>nightly</dist .pathpostfix>
77
77
<dist .path>${dist.type} /${dist.key} /${dist.project} /${dist.pathpostfix} </dist .path>
78
78
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 >
80
80
81
81
<tycho-version >4.0.12</tycho-version >
82
82
<encoding >UTF-8</encoding >
You can’t perform that action at this time.
0 commit comments