Update main.yml

This commit is contained in:
Anonymus Raccoon
2020-01-08 16:37:10 +01:00
committed by GitHub
parent 4165fdfd5a
commit 4824f07255
+7 -3
View File
@@ -17,20 +17,24 @@ jobs:
echo -ne $SSH_PRIVATE_KEY >> ~/.ssh/blih
chmod 400 ~/.ssh/blih
rm -rf **/.git*
echo $TEST
echo test2
ls -R
ls -lRa
echo -ne "Host git.epitech.eu\n\tHostname git.epitech.eu\n\tUser git\n\tIdentityFile $(readlink -f ~/.ssh/blih)\n" >> ~/.ssh/config
git config --global user.email "tristan.roux@epitech.eu"
git config --global user.name "Tristan Roux"
ssh-keyscan git.epitech.eu >> ~/.ssh/known_hosts
git clone git@git.epitech.eu:/tristan.roux@epitech.eu/MUL_my_runner_2019 /tmp/blihRepo
echo cloneDone
export REPOVAR=`pwd`
cd /tmp/blihRepo
echo cdDone
find . -not -path "./.git*" -delete
echo findDone
cp -r $REPOVAR/* .
echo cpDone
git add -A
echo addDone
git commit -m "Sync"
echo Commid
git push origin master
env:
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}