Checkout repo after create

Signed-off-by: Marcus Noble <github@marcusnoble.co.uk>
This commit is contained in:
Marcus Noble 2023-04-13 07:13:10 +01:00
parent 1cd2abbcc4
commit 3df7db747b
Signed by: AverageMarcus
GPG Key ID: B8F2DB8A7AEBAF78

View File

@ -59,7 +59,9 @@ REPOSITORY_NAME=${POS_ARGS[0]}
echo "✨ Creating new repo $(italic ${VISIBILITY}) $(orange ${REPOSITORY_NAME}) using base template $(blue ${TEMPLATE})" echo "✨ Creating new repo $(italic ${VISIBILITY}) $(orange ${REPOSITORY_NAME}) using base template $(blue ${TEMPLATE})"
gh repo create --${VISIBILITY} --template ${TEMPLATE} giantswarm/${REPOSITORY_NAME} gh repo create --${VISIBILITY} --template ${TEMPLATE} giantswarm/${REPOSITORY_NAME}
git take git@github.com:giantswarm/${REPOSITORY_NAME}.git
if [ -d helm/APP-NAME ]; then if [ -d helm/APP-NAME ]; then
mv 'helm/{APP-NAME}' helm/${REPOSITORY_NAME} mv 'helm/{APP-NAME}' helm/${REPOSITORY_NAME}