- add additional messages in case of no or just a single tag
This commit is contained in:
+6
@@ -974,6 +974,12 @@ class Tags {
|
||||
return tags[0];
|
||||
}
|
||||
catch (error) {
|
||||
if (tags.length < 1) {
|
||||
core.warning(`⚠️ Only one tag found for the given repository`);
|
||||
}
|
||||
else if (tags.length < 0) {
|
||||
core.warning(`⚠️ No tag found for the given repository`);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
});
|
||||
|
||||
+1
-1
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user