-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (41 loc) · 1.17 KB
/
Copy pathupdate-readme.yml
File metadata and controls
52 lines (41 loc) · 1.17 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
42
43
44
45
46
47
48
49
50
51
52
name: Update Algorithm README
on:
push:
branches:
- main
paths:
- "src/**/*.java"
- "scripts/generate_readme.py"
- ".github/workflows/update-readme.yml"
workflow_dispatch:
permissions:
contents: write
concurrency:
group: update-algorithm-readme
cancel-in-progress: true
jobs:
update-readme:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v7
with:
ref: main
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: "3.13"
- name: Generate README
run: python scripts/generate_readme.py
- name: Commit README changes
run: |
if git diff --quiet README.md; then
echo "README.md 변경 사항이 없습니다."
exit 0
fi
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 "docs: update algorithm README"
git push origin main