Files
t_tech-gyro/.github/workflows/rebalance.yml

29 lines
898 B
YAML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
name: Weekly Portfolio Rebalance
on:
# 1. Запуск по расписанию (каждый понедельник в 10:30 МСК)
schedule:
- cron: '30 7 * * 1' # Время в UTC (7:30 UTC = 10:30 МСК)
# 2. Возможность запустить вручную кнопкой в интерфейсе GitHub
workflow_dispatch:
jobs:
rebalance:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v3
- name: Set up Python
run: uv python install 3.13
- name: Run Rebalance Bot
env:
# Передаем секреты в переменные окружения скрипта
TINVEST_TOKEN: ${{ secrets.TINVEST_TOKEN }}
run: uv run main.py # Замени на имя своего главного файла