diff --git a/clone_nonbillables_and_process.sh b/clone_nonbillables_and_process.sh new file mode 100644 index 0000000..e7eb8dc --- /dev/null +++ b/clone_nonbillables_and_process.sh @@ -0,0 +1,19 @@ +#!/bin/sh +set -xe + +# Add deploy key to ssh config +mkdir -p ~/.ssh +touch ~/.ssh/config +touch ~/.ssh/id_nonbillable +if ! grep -q "Host github-nonbillable" ~/.ssh/id_nonbillable; then + echo " + Host github-nonbillable + HostName github.com + IdentityFile ~/.ssh/id_nonbillable + " > ~/.ssh/config + echo "$GH_NONBILLABLE_DEPLOYKEY" > ~/.ssh/id_nonbillable +fi +chmod 600 ~/.ssh/id_nonbillable + +git clone git@github-nonbillable:CCI-MOC/non-billable-projects.git ~/non-billable-projects +cp ~/non-billable-projects/*.txt .