Add GitHub Actions workflow for automatic file listing updates

This commit is contained in:
ZareMate 2025-01-24 23:56:54 +01:00
parent 89f9ae4bef
commit 237e48b86b
Signed by: zaremate
GPG Key ID: 369A0E45E03A81C3

View File

@ -0,0 +1,33 @@
---
jobs:
update-list:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.x
- name: Install dependencies
run: |
python -m pip install --upgrade pip
- name: Run AutoIndex script
run: |
python torrents/AutoIndex.py
- name: Commit changes
run: |
git config --global user.name 'Gitea Bot'
git config --global user.email 'bot@example.com'
git add readme.md
git commit -m 'Update file listing'
git push
name: Auto List Update
'on':
push:
branches:
- main
paths:
- torrents/**