pika-first-setup/.github/github_pushback.sh

20 lines
545 B
Bash
Raw Normal View History

2024-12-04 19:49:35 +03:00
#! /bin/bash
2024-12-04 20:00:38 +03:00
if echo "${PWD##*/}" | grep "gitea-pika-first-setup"
then
echo "This is github attempt pushback"
else
echo "No push back here" && exit 0
fi
2024-12-04 19:49:35 +03:00
2024-12-04 20:04:56 +03:00
2024-12-04 19:49:35 +03:00
# Commit changes to git
git config --global user.name 'Github Mirror Push Back - Ward'
git config --global user.email 'hotrod.master@hotmail.com'
git config --global --add safe.directory /__w/gitea-pika-first-setup/gitea-pika-first-setup
2024-12-04 20:04:56 +03:00
git remote set-url origin git@git.pika-os.com:custom-gui-packages/pika-first-setup
2024-12-04 19:49:35 +03:00
git add .
git commit -am"Github Mirror Push Back"
git push