diff --git a/.github/workflows/cluster-ci.yml b/.github/workflows/cluster-ci.yml index 57fc637..74095b6 100644 --- a/.github/workflows/cluster-ci.yml +++ b/.github/workflows/cluster-ci.yml @@ -19,7 +19,9 @@ jobs: repository: ocf/kubernetes - name: Build cluster repository - run: transpire object build _out ${{ inputs.module_name != '' && format('--module {0}', inputs.module_name) || '' }} + run: > + transpire object build _out ${{ inputs.module_name != '' && + format('--module {0}', inputs.module_name) || '' }} - name: Push cluster repository run: | @@ -30,10 +32,10 @@ jobs: export GIT_SSH_COMMAND="ssh -i $HOME/.ssh/deploy_key -o UserKnownHostsFile=$HOME/.ssh/known_hosts" CLONE_DIR=$(mktemp -d) - git clone --bare --single-branch --depth 1 git@github.com:ocf/cluster.git $CLONE_DIR - mv $CLONE_DIR _out/.git + git clone --single-branch --depth 1 git@github.com:ocf/cluster.git $CLONE_DIR - cd _out + cd $CLONE_DIR + mv _out/* . git config --bool core.bare false git config --bool push.autoSetupRemote true git config user.email ocfbot@ocf.berkeley.edu