games_app/deploy/gitea-stack/make-repo-ci-ready.sh
Your Name e01e4f6372
Some checks failed
CI / test-and-build (push) Failing after 1s
Simplify Gitea CI workflow to avoid marketplace action stalls
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-11-17 20:23:30 +02:00

13 lines
466 B
Bash

#!/usr/bin/env bash
set -euo pipefail
cd ~/gitea
set -a; source .env; set +a
# Allow unauthenticated clone from job containers on the private VPS network
curl -fsS -u "${GITEA_ADMIN_USER}:${GITEA_ADMIN_PASSWORD}" \
-X PATCH -H 'Content-Type: application/json' \
-d '{"private":false}' \
"http://127.0.0.1:3000/api/v1/repos/tloto-admin/games_app" | head -c 200
echo
# Add Actions variable/secret for clone if we switch back to private later
echo REPO_PUBLIC_OK