Some checks failed
CI / test-and-build (push) Failing after 1s
Co-authored-by: Cursor <cursoragent@cursor.com>
13 lines
466 B
Bash
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
|