From 49d9c37b4e1a8eeafa8d3c85cf54befe3ff9195b Mon Sep 17 00:00:00 2001 From: RU_NoName Date: Thu, 9 Apr 2026 08:03:14 +0000 Subject: [PATCH] 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. --- .github/workflows/main.yml | 40 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..eb2a105 --- /dev/null +++ b/.github/workflows/main.yml @@ -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