mirror of
https://github.com/zoriya/Twac.git
synced 2026-06-01 18:15:11 +00:00
Update main.yml
This commit is contained in:
@@ -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 }}
|
||||
|
||||
Reference in New Issue
Block a user