您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 
 

14 行
454 B

  1. #!/bin/bash
  2. CURRENT_VERSION=$1
  3. NEXT_VERSION=$2
  4. CURRENT_MAJOR=${CURRENT_VERSION:0:1}
  5. NEXT_MAJOR=${NEXT_VERSION:0:1}
  6. if [ "$CURRENT_MAJOR" -ne "$NEXT_MAJOR" ] ;
  7. then if [ "$BREAKING_OKAY" = "true" ];
  8. then echo "breaking change detected but BREAKING_OKAY is set; continuing." && exit 0;
  9. else echo "breaking change detected and BREAKING_OKAY is not set; aborting." && exit 1;
  10. fi;
  11. fi;
  12. echo "next version is not a breaking change; continuing.";