From 6f32fec8405bbe318745c0fd5ce30a86d6b7abc2 Mon Sep 17 00:00:00 2001 From: Nathan Falvey Date: Fri, 27 Feb 2026 22:18:45 +0000 Subject: [PATCH] Refactor Gitea workflow to replace checkout step with manual git clone and remove unnecessary Python setup --- .gitea/workflows/update.yaml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.gitea/workflows/update.yaml b/.gitea/workflows/update.yaml index 136cf74..60e7a28 100644 --- a/.gitea/workflows/update.yaml +++ b/.gitea/workflows/update.yaml @@ -11,13 +11,13 @@ jobs: container: image: python:3.9-slim steps: - - name: Checkout Code - uses: actions/checkout@v4 - - # DELETE the "Set up Python" step entirely - - - name: Update README file + - name: Manual Git Clone run: | - # Check if python3 is there, if not, install it quickly - which python3 || (sudo apt-get update && sudo apt-get install -y python3) + # We have to install git first because the runner doesn't even have that! + sudo apt-get update && sudo apt-get install -y git python3 python3-pip + git clone http://your-gitea-ip:3000/${{ gitea.repository }}.git . + + - name: Run Script + run: | + pip3 install requests --break-system-packages python3 update_profile.py \ No newline at end of file