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: container:
image: python:3.9-slim image: python:3.9-slim
steps: steps:
- name: Checkout Code - name: Manual Git Clone
uses: actions/checkout@v4
# DELETE the "Set up Python" step entirely
- name: Update README file
run: | run: |
# Check if python3 is there, if not, install it quickly # We have to install git first because the runner doesn't even have that!
which python3 || (sudo apt-get update && sudo apt-get install -y python3) 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 python3 update_profile.py