2
0
Fork 0
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:
CrazyMax 2020-11-18 01:10:05 +01:00
parent 8adbcfe00d
commit a017e545d7
No known key found for this signature in database
GPG key ID: 3248E46B6BB8C7F7
3 changed files with 30 additions and 0 deletions

View file

@ -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;
}