.github/worfklows
폴더 안에 .yml
파일을 생성 => 템플릿이 있어요2) workflow 정의
name: yes24_crawler
on:
schedule:
- cron: '0 0 * * *'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.7
- name: Install dependencies
run: |
python -m pip install --upgrade pip
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Run main.py
run: |
python main.py
env:
MY_GITHUB_TOKEN: ${{ secrets.MY_GITHUB_TOKEN }}