Skip to content

Commit

Permalink
Removed circleci config update
Browse files Browse the repository at this point in the history
  • Loading branch information
Sandhya1874 committed Nov 18, 2024
1 parent 6a8d93a commit 16419e6
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions rename-project.bash
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 16419e6

Please sign in to comment.