From 1d41c8afc0be9648e5818c7d249b71183f5bb94b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bernd=20M=C3=BCller?= Date: Tue, 19 Nov 2024 15:05:27 +0100 Subject: [PATCH] check if type not in path name --- .github/workflows/process_profile_script.py | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/process_profile_script.py b/.github/workflows/process_profile_script.py index 3825387..b6c79dd 100644 --- a/.github/workflows/process_profile_script.py +++ b/.github/workflows/process_profile_script.py @@ -189,8 +189,10 @@ def processProfiles(self, filename, profilename): profile_name = arg.split("/")[-1].split(".json")[0].split("_")[0] - # abspath = "https://raw.githubusercontent.com/zbmed-semtec/specifications/master/" + arg - print("Running processProfiles() for : ", - profile_name, "with file", arg) - - proc.processProfiles(arg, profile_name) + if not "type" in profile_name: + # abspath = "https://raw.githubusercontent.com/zbmed-semtec/specifications/master/" + arg + print("Running processProfiles() for : ", + profile_name, "with file", arg) + proc.processProfiles(arg, profile_name) + else: + print("Not processing", arg, "because 'type' in path name!")