diff --git a/rename-project.bash b/rename-project.bash index 7279c6c..d9727dc 100755 --- a/rename-project.bash +++ b/rename-project.bash @@ -82,27 +82,6 @@ sed -i -z -E \ mv "src/main/$BASE/$PACKAGE_NAME/HmppsTemplateKotlin.kt" "src/main/$BASE/$PACKAGE_NAME/$CLASS_NAME.kt" mv "src/main/$BASE/$PACKAGE_NAME/config/HmppsTemplateKotlinExceptionHandler.kt" "src/main/$BASE/$PACKAGE_NAME/config/${CLASS_NAME}ExceptionHandler.kt" -# change cron job to be random time otherwise we hit rate limiting with veracode -RANDOM_HOUR=$((RANDOM % (9 - 3 + 1) + 3)) -RANDOM_MINUTE=$(($RANDOM%60)) -RANDOM_MINUTE2=$(($RANDOM%60)) -sed -i -z -E \ - -e "s/SLACK_RELEASES_CHANNEL/$SLACK_RELEASES_CHANNEL/" \ - .circleci/config.yml - -echo "NEEDS TO BE SET MANUALLY" -echo "========================" -echo "DAILY CRON: ${RANDOM_MINUTE} ${RANDOM_HOUR}" -echo "WEEKLY CRON: ${RANDOM_MINUTE2} ${RANDOM_HOUR}" -echo "SLACK CHANNEL: ${SECURITY_ALERTS_SLACK_CHANNEL_ID}" - -# TEMPORARILY REMOVED - THIS WILL NEED TO BE DONE MANUALLY UNTIL WE MOVE TO GITHUB ACTIONS BOOTSTRAP -# sed -i -z -E \ -# -e "s/on:\n workflow_dispatch:\n schedule:\n - cron: \"19 6/on:\n workflow_dispatch:\n schedule:\n - cron: \"$RANDOM_MINUTE $RANDOM_HOUR/" \ -# -e "s/on:\n workflow_dispatch:\n schedule:\n - cron: \"34 6/on:\n workflow_dispatch:\n schedule:\n - cron: \"$RANDOM_MINUTE2 $RANDOM_HOUR/" \ -# -e "s/C05J915DX0Q/$SECURITY_ALERTS_SLACK_CHANNEL_ID/" \ -# .github/workflows/* - # lastly remove ourselves rm rename-project.bash