File bin/modules/github.sh

Last commit: Wed Nov 27 01:04:22 2024 +0100	Jan Dankert	Small fixes...
1 #!/bin/bash 2 3 echo "Pushing git repo to GitHub" 4 5 curl --fail --silent https://github.com/${github_owner}/${REPO_NAME} > /dev/null 6 7 # Checking if repo exists on github. 8 if [ $? -ne 0 ]; then 9 echo "Warning: GitHub-Project ${REPO_NAME} does not exist" 10 echo "go to https://github.com/new to create the repo '$REPO_NAME'." 11 return # no project on github, exiting without error 12 fi 13 14 ssh -q git@github.com 15 16 if [ $? -ne 1 ]; then 17 echo "SSH Connection to GitHub failed with RC $?" 18 return 4 19 fi 20 21 # Push to remote repos 22 git push -vv --all git@github.com:${github_owner}/${REPO_NAME} 23 if [ $? -ne 0 ]; then 24 echo "Push to github failed due to exitcode $?" 25 return 4 26 fi 27 28 git push -vv --tags git@github.com:${github_owner}/${REPO_NAME} 29 if [ $? -ne 0 ]; then 30 echo "Push to github failed due to exitcode $?" 31 return 4 32 fi 33 34 return 0
Download bin/modules/github.sh
History Wed, 27 Nov 2024 01:04:22 +0100 Jan Dankert Small fixes... Tue, 26 Nov 2024 23:26:36 +0100 Jan Dankert New: Creating a project website Sun, 12 May 2024 19:53:02 +0200 Jan Dankert first edition of DIT, the delivery expert.