-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (33 loc) · 1.12 KB
/
Copy pathupdate-readme.yml
File metadata and controls
41 lines (33 loc) · 1.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
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