Print warnings when builds are deselected because of build OS

This commit is contained in:
Joe Rickerby
2021-01-05 14:29:38 +00:00
parent 46eb28791f
commit e405f3495e
3 changed files with 47 additions and 5 deletions
+12
View File
@@ -113,6 +113,18 @@ class Logger:
def step_end_with_error(self, error: Union[BaseException, str]) -> None:
self.step_end(success=False)
self.error(error)
def warning(self, message: str) -> None:
print()
if self.fold_mode == 'github':
print(f'::warning::{message}')
else:
c = self.colors
print(f'{c.yellow}Warning{c.end} {message}')
def error(self, error: Union[BaseException, str]) -> None:
print()
if self.fold_mode == 'github':