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

20 lines
520 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
2024-12-04 20:14:29 +03:00
echo "No push back here" && exit 1
2024-12-04 20:00:38 +03:00
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
2024-12-04 18:26:45 +01:00
git config --global user.name 'ferreo'
git config --global user.email 'harderthanfire@gmail.com'
2024-12-04 19:49:35 +03:00
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