first init

This commit is contained in:
2024-10-29 06:40:32 +01:00
commit 04b0eb4eb6
37 changed files with 4032 additions and 0 deletions

View File

@ -0,0 +1,33 @@
#!/bin/sh
# exit on error
set -e
commit_message=$1
if [ -z "$commit_message" ]; then
echo "Commit message is required"
exit 1
fi
# if there are no changes, exit
if [ -z "$(git status --porcelain)" ]; then
echo "No changes found"
exit 0
fi
echo "Adding the changes to the git stage"
git add .
echo "Checking the status of the git repository"
git status
echo "Committing the changes"
git commit --no-verify -m "$commit_message"
current_remote=$(git config --get "branch.$CI_COMMIT_BRANCH.remote")
echo "Pushing the changes to the branch $CI_COMMIT_BRANCH in the remote $current_remote"
git push --no-verify "$current_remote" "$CI_COMMIT_BRANCH"
echo "Done"