ci: support build only label

This commit is contained in:
Fu Hanxi
2024-01-14 21:18:20 +01:00
parent 19efb30536
commit b581d81fc1
3 changed files with 24 additions and 4 deletions

View File

@@ -100,6 +100,9 @@ def main(arguments: argparse.Namespace) -> None:
)
build_jobs.append(non_test_apps_build_job)
if mr_labels := os.getenv('CI_MERGE_REQUEST_LABELS'):
print(f'MR labels: {mr_labels}')
# check if there's no jobs
if not build_jobs:
print('No apps need to be built. Create one empty job instead')