-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (31 loc) · 1.02 KB
/
check-commits.yml
File metadata and controls
38 lines (31 loc) · 1.02 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
name: Check Daily Commits
on:
schedule:
# 매일 00:00 (UTC 기준, 한국시간 오전 9시)
# 한국시간 00:00으로 하려면: cron: '0 15 * * *' (UTC 15시 = 한국시간 00:00)
- cron: "0 15 * * *"
workflow_dispatch: # 수동 실행도 가능하도록
permissions:
contents: write # README.md 업데이트를 위한 권한
issues: write # Issue 생성을 위한 권한
jobs:
check-commits:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
fetch-depth: 0 # 전체 커밋 히스토리 가져오기
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Install dependencies
run: |
pip install PyGithub python-dateutil
- name: Check commits and update README
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
python .github/scripts/check_commits.py