Refactor Gitea workflow to replace checkout step with manual git clone and remove unnecessary Python setup

This commit is contained in:
2026-02-27 22:18:45 +00:00
parent da11851aa4
commit 6f32fec840

View File

@@ -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