Use token for non-interactive Git push

This commit is contained in:
2026-05-20 13:29:46 +02:00
parent 8db94de611
commit 4afe00a348
+3 -1
View File
@@ -110,11 +110,13 @@ if grep -q '"message"' /tmp/appfactory-create-hook-response.json; then
cat /tmp/appfactory-create-hook-response.json
fi
git config --global init.defaultBranch main || true
git init
git config user.name "AppFactory Bot"
git config user.email "appfactory@local"
git branch -M main
git remote add origin "$GITEA_URL/$GITEA_ORG/$APP_ID.git"
GITEA_PUSH_URL="${GITEA_URL/http:\/\//http:\/\/${GITEA_TOKEN}@}"
git remote add origin "$GITEA_PUSH_URL/$GITEA_ORG/$APP_ID.git"
git add .
git commit -m "Initial $APP_NAME"