Skip to content

BOJ UPDATE

BOJ UPDATE #92

Workflow file for this run

name: Auto Update README
on:
push:
branches: [ main ]
workflow_dispatch: # 수동 실행 버튼 추가
jobs:
update:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4 # 최신 버전 권장
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Install dependencies
run: pip install requests beautifulsoup4 certifi
- name: Run Update Script
env:
PROCESS_ROOT: "false"
run: python .github/scripts/update_readme.py
- name: Commit and Push
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
# README들과 캐시 파일을 함께 스테이징
git add "**/README.md" ".github/problem_cache.json" || true
if ! git diff --cached --quiet; then
git commit -m "docs: README 및 API 캐시 업데이트 [skip ci]"
git push
else
echo "변경 사항 없음"
fi