mirror of
https://github.com/VOID-Anonymity/V.O.I.D-VPN_Bypass.git
synced 2026-09-22 23:08:10 +03:00
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:
@@ -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
|
||||
Reference in New Issue
Block a user