Skip to content

Commit 24b0ee1

Browse files
do not leak nightly to stable
1 parent 2484342 commit 24b0ee1

2 files changed

Lines changed: 17 additions & 2 deletions

File tree

.github/workflows/nightly.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
with:
2424
channel: nightly
2525
version: ${{ needs.pre-build.outputs.version }}
26-
changelog: "New Nightly Snapshot"
26+
changelog: "<p>New Nightly Snapshot ${{ needs.pre-build.outputs.version }}</p>"
2727
versionsdbremote: master
2828

2929
deploy:

.github/workflows/update-repo.yml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,22 @@ jobs:
333333
}
334334
console.log("downloading " + repo.artifact + " to " + path)
335335
336-
for(var art of artifacts.filter(a => a.name === repo.artifact || a.name && a.name.startsWith(repo.artifact + "-"))) {
336+
// Bug bionic-<no> and bionic-nightly-<no>, prefix alone is buggy
337+
let predicate = (name, artifact) => {
338+
if (name === artifact) {
339+
return true;
340+
}
341+
const prefix = `${artifact}-`;
342+
if (name.startsWith(prefix)) {
343+
const remainder = name.slice(prefix.length);
344+
if (!isNaN(remainder) && Number.isInteger(Number(remainder))) {
345+
return true;
346+
}
347+
}
348+
return false;
349+
};
350+
351+
for(var art of artifacts.filter(a => predicate(a.name, repo.artifact))) {
337352
try {
338353
console.log(JSON.stringify({name: art.name, id: art.id, path, options}));
339354
const downloadResponse = await artifactClient.downloadArtifact(art.id, options);

0 commit comments

Comments
 (0)