This repository has been archived by the owner on Oct 29, 2024. It is now read-only.
Python Cron Job #6
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Python Cron Job | |
on: | |
schedule: | |
- cron: '0 * * * *' | |
push: | |
branches: | |
- main | |
jobs: | |
run-python-script: | |
runs-on: ubuntu-latest | |
steps: | |
- name: 저장소 체크아웃 | |
uses: actions/checkout@v4 | |
- name: 파이썬 셋업 | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.9' | |
- name: 의존성 설치 | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r requirements.txt | |
- name: 스크립트 실행 | |
env: | |
TELEGRAM_BOT_TOKEN: ${{ secrets.TELEGRAM_BOT_TOKEN }} | |
TELEGRAM_CHAT_ID: ${{ secrets.TELEGRAM_CHAT_ID }} | |
TRADING_API_URL: ${{ secrets.TRADING_API_URL }} | |
TRADING_API_KEY: ${{ secrets.TRADING_API_KEY }} | |
TRADING_SECRET_KEY: ${{ secrets.TRADING_SECRET_KEY }} | |
run: python main.py |