From d10575d90e376f3971ef1a68973656d9fc09e8e8 Mon Sep 17 00:00:00 2001 From: Nathan Falvey Date: Fri, 27 Feb 2026 19:19:08 +0000 Subject: [PATCH] Refactor Gitea workflow to simplify Python setup and remove unnecessary commit steps --- .gitea/workflows/update.yaml | 18 +++++------------- 1 file changed, 5 insertions(+), 13 deletions(-) diff --git a/.gitea/workflows/update.yaml b/.gitea/workflows/update.yaml index e88eec7..d0746cd 100644 --- a/.gitea/workflows/update.yaml +++ b/.gitea/workflows/update.yaml @@ -8,22 +8,14 @@ on: jobs: build: runs-on: ubuntu-latest + container: + image: python:3.9-slim steps: - name: Checkout Code uses: actions/checkout@v4 - - name: Set up Python - uses: actions/setup-python@v4 - with: - python-version: '3.9' + - name: Install dependencies + run: pip install requests - name: Update README file - run: python3 update_profile.py - - - name: Commit and Push - run: | - git config --local user.email "action@gitea.com" - git config --local user.name "Gitea Action" - git add README.md - # Only commit if there are actual changes to avoid errors - git diff --quiet && git diff --staged --quiet || (git commit -m "Update profile stats" && git push) \ No newline at end of file + run: python update_profile.py \ No newline at end of file