✨ feat: ChromeDriver 경로 설정 및 로그 디렉토리 생성 추가
- ChromeDriver 경로를 환경 변수로 설정하여 유연한 드라이버 관리 가능 - CI 및 로컬 환경에서 로그 디렉토리를 자동 생성하도록 수정 - requirements.txt에서 selenium 버전을 명시적으로 지정하여 호환성 강화
This commit is contained in:
4
.github/workflows/lotto-buy.yml
vendored
4
.github/workflows/lotto-buy.yml
vendored
@@ -78,11 +78,12 @@ jobs:
|
||||
uses: browser-actions/setup-chrome@v1
|
||||
with:
|
||||
install-dependencies: true
|
||||
install-driver: true
|
||||
install-chromedriver: true
|
||||
|
||||
- name: Chrome 확인
|
||||
run: |
|
||||
"${{ steps.setup-chrome.outputs.chrome-path }}" --version
|
||||
"${{ steps.setup-chrome.outputs.chromedriver-path }}" --version
|
||||
|
||||
- name: 로또 구매 실행
|
||||
env:
|
||||
@@ -91,4 +92,5 @@ jobs:
|
||||
TELEGRAM_BOT_TOKEN: ${{ secrets.TELEGRAM_BOT_TOKEN }}
|
||||
TELEGRAM_CHAT_ID: ${{ secrets.TELEGRAM_CHAT_ID }}
|
||||
CHROME_BIN: ${{ steps.setup-chrome.outputs.chrome-path }}
|
||||
CHROMEDRIVER_PATH: ${{ steps.setup-chrome.outputs.chromedriver-path }}
|
||||
run: .venv/bin/python3 lotto-runner/lotto_auto_buy.py
|
||||
|
||||
Reference in New Issue
Block a user