Skip to content

Check The Result Of Lotto (로또 결과봇) #89

Check The Result Of Lotto (로또 결과봇)

Check The Result Of Lotto (로또 결과봇) #89

Workflow file for this run

name: Check The Result Of Lotto (로또 결과봇)
on:
schedule:
- cron: "20 13 * * 6" # UST 기준의 크론. UST 13:20 는 KST 22:20, 매주 토요일 20시 35분경 발표 시작
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.9.21]
steps:
- uses: actions/checkout@v2
- name: Set up python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: Install python package
run: |
pip install selenium
pip install requests
pip install twython
pip install pillow
pip install gspread
pip install beautifulsoup4
pip install lxml
pip install pytz
pip install --upgrade google-api-python-client oauth2client
pip install playwright
python -m playwright install ${{ matrix.browser-channel }} --with-deps
- name: Install ubuntu package
run: |
sudo apt-get install fonts-unfonts-core
sudo apt-get install fonts-unfonts-extra
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add
sudo apt-get install google-chrome-stable
wget https://chromedriver.storage.googleapis.com/100.0.4896.20/chromedriver_linux64.zip
unzip ./chromedriver_linux64.zip
- name: Run for checking the result of Lotto!
run: |
python ./check_result.py ${{secrets.USER_ID}} ${{secrets.USER_PW}} ${{secrets.SLACK_BOT_TOKEN}} ${{secrets.SLACK_CHANNEL}} ${{secrets.BUY_COUNT}}