Article Collector #128
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: Article Collector | |
| on: | |
| schedule: | |
| # 매일 오전 8시, 9시 KST (UTC 23시 전날, 0시) | |
| - cron: '0 23 * * *' # 오전 8시 KST | |
| - cron: '0 0 * * *' # 오전 9시 KST | |
| workflow_dispatch: | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| jobs: | |
| collect: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: '3.9' | |
| - name: Install dependencies | |
| run: | | |
| cd .github | |
| pip install -r requirements.txt | |
| - name: Collect articles | |
| run: | | |
| cd .github | |
| python scripts/collect_articles.py | |
| - name: Evaluate and filter articles | |
| run: | | |
| cd .github | |
| python scripts/evaluate_articles.py | |
| - name: Create PR for high-score articles | |
| run: | | |
| cd .github | |
| python scripts/create_pr.py | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |