pika-welcome/.github/github_pushback.sh
Ward from fusion-voyager-3 af49e4fbdb
Some checks failed
Github Push back to gitea / Push (push) Failing after 32s
fix
2024-12-05 17:44:17 +03:00

32 lines
1017 B
Bash
Executable File

#! /bin/bash
mkdir -p ~/.ssh
ssh-keyscan -H pika-os.com >> ~/.ssh/known_hosts
ssh-keyscan -H git.pika-os.com >> ~/.ssh/known_hosts
#echo -e "Host git.pika-os.com\n\tStrictHostKeyChecking no\n" >> ~/.ssh/config
#echo -e "Host git.pika-os.com\n\tIdentityFile ~/.ssh/id_rsa\n\tStrictHostKeyChecking no\n" > ~/.ssh/config
#ssh-agent -a $SSH_AUTH_SOCK > /dev/null
#ssh-add - <<< "$1"
#export GIT_SSH_COMMAND="ssh -F ~/.ssh/config"
#ssh -o StrictHostKeyChecking=no -vT git@git.pika-os.com
#ssh -vT git@git.pika-os.com
# Commit changes to git
git config --global user.name 'Github Gitea Push Back Key - Cosmo'
git config --global user.email 'cosmo@pika-os.com'
#git config --global --add safe.directory /__w/gitea-pika-welcome/gitea-pika-welcome
git clone git@git.pika-os.com:custom-gui-packages/pika-welcome
rm -rfv ./gitea-pika-welcome/.git
cp -rfv ./pika-welcome/.git ./gitea-pika-welcome/
cd ./gitea-pika-welcome
git add .
git commit -am"Github Mirror Push Back"
#git config pull.rebase true
#git pull
git push