diff --git a/.github/workflows/autotagv2.yml b/.github/workflows/autotagv2.yml index 87aa9a15b..80e9daf2b 100644 --- a/.github/workflows/autotagv2.yml +++ b/.github/workflows/autotagv2.yml @@ -30,14 +30,6 @@ jobs: echo "$alz_files" | tail -2 for input_file in ${{ steps.files.outputs.all }}; do echo "Processing '$input_file'..." - # intersection=$(echo "$alz_files" | grep "$input_file") - # echo "Intersection between $input_file and ALZ files is: '$intersection'" - # if [[ -z "$intersection" ]]; then - # echo "'$input_file' has no ALZ impact" - #else - # echo "Modification to file '$input_file' detected, which seems to be a reco leveraged by the ALZ checklist" - # echo "alz_impact=yes" >> $GITHUB_OUTPUT - #fi if [[ "$alz_files" == *"$input_file"* ]]; then echo "Modification to file '$input_file' detected, which seems to be a reco leveraged by the ALZ checklist" echo "alz_impact=yes" >> $GITHUB_OUTPUT diff --git a/scripts/modules/cl_v2tov1.py b/scripts/modules/cl_v2tov1.py index 3967ad73c..78a193eb2 100644 --- a/scripts/modules/cl_v2tov1.py +++ b/scripts/modules/cl_v2tov1.py @@ -90,10 +90,14 @@ def generate_v1(checklist_file, input_folder, output_file, service_dictionary=No else: checklist_v1['metadata']['name'] = 'Name missing from checklist YAML file' # Write the output file - if verbose: print("DEBUG: Writing file", output_file) + if verbose: print("DEBUG: Dumping v1 checklist to file", output_file) if output_file: - with open(output_file, 'w') as f: - json.dump(checklist_v1, f, indent=4) + try: + with open(output_file, 'w') as f: + json.dump(checklist_v1, f, indent=4) + except Exception as e: + print("ERROR: Error writing output file {0} - {1}".format(output_file, str(e))) + sys.exit(1) # Function that returns a string ID for a reco of the format A01.01 # Area and subarea are optional, but the reco_index is mandatory