- 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];
|
return tags[0];
|
||||||
}
|
}
|
||||||
catch (error) {
|
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;
|
return null;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
+1
-1
File diff suppressed because one or more lines are too long
@@ -81,6 +81,11 @@ export class Tags {
|
|||||||
}
|
}
|
||||||
return tags[0]
|
return tags[0]
|
||||||
} catch (error) {
|
} 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
|
return null
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user