2
0
Fork 0
mirror of https://code.forgejo.org/docker/metadata-action.git synced 2025-08-03 08:18:31 +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

1
dist/index.js generated vendored
View file

@ -240,6 +240,7 @@ class Meta {
else if (/^refs\/pull\//.test(this.context.ref)) {
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;
}
tags() {