Auto-updating

This workflow updates VLESS configurations every 55 minutes and allows manual triggering. It sets up Python, installs dependencies, runs a parser script, and commits any changes back to the repository.
This commit is contained in:
RU_NoName
2026-04-09 08:03:14 +00:00
committed by GitHub
parent 22e57309d4
commit 49d9c37b4e
+40
View File
@@ -0,0 +1,40 @@
name: Update VLESS Configs
on:
schedule:
# Запуск каждые 55 минут
- cron: '*/55 * * * *'
workflow_dispatch: # Позволяет запускать скрипт вручную кнопкой
jobs:
build:
runs-on: ubuntu-latest
# Даем права на запись, чтобы скрипт мог обновить файлы в репозитории
permissions:
contents: write
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Install dependencies
run: |
pip install requests
# Добавь сюда другие библиотеки, если они нужны твоему парсеру
- name: Run parser
run: python your_script_name.py # Замени на имя своего файла
- name: Commit and push changes
run: |
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git add .
git commit -m "Auto-update configs: $(date)" || echo "No changes to commit"
git push