Daily UOS Notices #554
This file contains hidden or 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: Daily UOS Notices | |
| on: | |
| schedule: | |
| - cron: "0 */6 * * *" # 6시간에 간격 (09시 15시 21시 03시) | |
| workflow_dispatch: {} | |
| jobs: | |
| run: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.11" | |
| - name: Install deps | |
| run: | | |
| pip install -r requirements-crawler.txt | |
| python -m playwright install --with-deps chromium | |
| - name: Run all crawlers | |
| env: | |
| OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} | |
| DB_HOST: ${{ secrets.DB_HOST }} | |
| DB_USER: ${{ secrets.DB_USER }} | |
| DB_PASSWORD: ${{ secrets.DB_PASSWORD }} | |
| DB_NAME: ${{ secrets.DB_NAME }} | |
| DB_PORT: ${{ secrets.DB_PORT }} | |
| DB_CHARSET: "utf8mb4" | |
| run: | | |
| cd scripts | |
| python run_all_crawlers.py |