Skip to content

Commit

Permalink
unknown changes
Browse files Browse the repository at this point in the history
  • Loading branch information
erjosito committed Oct 4, 2024
1 parent 7add513 commit 3927956
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 11 deletions.
8 changes: 0 additions & 8 deletions .github/workflows/autotagv2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
10 changes: 7 additions & 3 deletions scripts/modules/cl_v2tov1.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3927956

Please sign in to comment.