Files
.profile/.gitea/workflows/update.yaml

23 lines
683 B
YAML

name: Update Profile Stats
on:
schedule:
- cron: '0 * * * *' # Runs every hour
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
container:
image: python:3.9-slim
steps:
- name: Manual Git Clone
run: |
# 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