Skip to content

Commit 59afc09

Browse files
feat: add latest app version to release index data
1 parent e1519ca commit 59afc09

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

.github/scripts/release-index/build-releases.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,7 @@ async function buildChannelData(channelReleases, channelName) {
210210
return {
211211
releases: topReleases,
212212
latestChartVersion: sorted[0]?.version || null,
213+
latestAppVersion: sorted[0]?.appVersion || null,
213214
latestWithSecurityFixes,
214215
};
215216
}
@@ -244,11 +245,13 @@ async function buildIndex() {
244245
releases: stable.releases,
245246
latestChartVersion: stable.latestChartVersion,
246247
latestWithSecurityFixes: stable.latestWithSecurityFixes,
248+
latestAppVersion: stable.latestAppVersion,
247249
},
248250
latest: {
249251
releases: latest.releases,
250252
latestChartVersion: latest.latestChartVersion,
251253
latestWithSecurityFixes: latest.latestWithSecurityFixes,
254+
latestAppVersion: latest.latestAppVersion,
252255
},
253256
},
254257
stats: {
@@ -274,6 +277,11 @@ async function buildIndex() {
274277
console.log(
275278
` Latest: ${index.channels.stable.latestChartVersion || "none"}`
276279
);
280+
console.log(
281+
` Latest app version: ${
282+
index.channels.stable.latestAppVersion || "none"
283+
}`
284+
);
277285
console.log(
278286
` Latest secure: ${
279287
index.channels.stable.latestWithSecurityFixes || "none"
@@ -283,6 +291,11 @@ async function buildIndex() {
283291
console.log(
284292
` Latest: ${index.channels.latest.latestChartVersion || "none"}`
285293
);
294+
console.log(
295+
` Latest app version: ${
296+
index.channels.latest.latestAppVersion || "none"
297+
}`
298+
);
286299
console.log(
287300
` Latest secure: ${
288301
index.channels.latest.latestWithSecurityFixes || "none"

0 commit comments

Comments
 (0)