[Silver V] Title: 알파빌과 베타빌, Time: 112 ms, Memory: 14728 KB -BaekjoonHub #335
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: Update Recent Solutions | |
| on: | |
| push: | |
| branches: [ main ] | |
| schedule: | |
| - cron: "0 0 * * *" # 매일 00:00 UTC (KST 09:00) | |
| workflow_dispatch: | |
| jobs: | |
| update: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| env: | |
| LIMIT: "20" # 최근 항목 개수 (원하면 15, 20 등으로 변경) | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 # 전체 히스토리 필요 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.x" | |
| - name: Run updater | |
| run: | | |
| python3 scripts/update-recent.py | |
| - name: Commit & Push if changed | |
| run: | | |
| if git diff --quiet README.md; then | |
| echo "No README changes." | |
| else | |
| git config user.name "github-actions[bot]" | |
| git config user.email "41898282+github-actions[bot]@users.noreply.github.com" | |
| git add README.md | |
| git commit -m "chore(readme): auto-update recent solutions" | |
| git push | |
| fi |