File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed
Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change 33import argparse
44import json
55import os
6+ import sys
67import zipfile
78from enum import Enum
89from pathlib import Path
@@ -519,6 +520,10 @@ def main() -> None:
519520 elif not args .summary_only : # Only show zero counts in detailed mode
520521 print (f" • { library } : 0" )
521522
523+ # Exit with non-zero status if no updates were made (or would be made in dry-run)
524+ if total_updates == 0 :
525+ sys .exit (1 )
526+
522527
523528if __name__ == "__main__" :
524529 main ()
Original file line number Diff line number Diff line change 33perl -pi -e ' s/^(\s*)(.*\*r.*)(#.*)$/$1$3\n$1$2/' manifests/* .yml
44perl -pi -e ' s/^(\s*)(- &ref.*)(#.*)$/$1$3\n$1$2/' manifests/* .yml
55python ./utils/scripts/activate-easy-wins.py " $@ "
6+ exit_code=$?
67./format.sh
8+ exit $exit_code
79
810
You can’t perform that action at this time.
0 commit comments