Update build.yml
This commit is contained in:
parent
67e40dab43
commit
cc5fb83dab
1 changed files with 3 additions and 4 deletions
7
.github/workflows/build.yml
vendored
7
.github/workflows/build.yml
vendored
|
|
@ -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(",");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue