選択できるのは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.";