mirror of
https://code.forgejo.org/docker/metadata-action.git
synced 2025-08-08 23:30:53 +00:00
Remove duplicated tags
This commit is contained in:
parent
8adbcfe00d
commit
a017e545d7
3 changed files with 30 additions and 0 deletions
|
@ -82,6 +82,7 @@ export class Meta {
|
|||
version.main = `pr-${this.context.ref.replace(/^refs\/pull\//g, '').replace(/\/merge$/g, '')}`;
|
||||
}
|
||||
|
||||
version.partial = version.partial.filter((item, index) => version.partial.indexOf(item) === index);
|
||||
return version;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue