1
0
Fork 0

Update build.yml

This commit is contained in:
Joao M 2024-11-11 13:26:33 -06:00 committed by GitHub
parent 67e40dab43
commit cc5fb83dab
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -76,13 +76,12 @@ jobs:
tags = `${{ join(steps.meta.outputs.tags, ',') }}`
result = []
tags.split("\n").forEach(function (item) {
echo item;
short_tag = item.trim().split(":")[1];
result.push(short_tag);
if (short_tag != "latest") {
result.push(short_tag);
}
if (short_tag == "master" || short_tag == "main") {
result.push("latest");
} else if (short_tag != "latest") {
result.push(short_tag);
}
})
return result.join(",");