Skip to content

Commit 51bec38

Browse files
authored
Merge pull request #1970 from DaleStudy/project-validation
PRμ—μ„œ ν”„λ‘œμ νŠΈ Week μ„€μ • λˆ„λ½μ„ λ°©μ§€λ₯Ό μœ„ν•œ CI μ„€μ •
2 parents ce305d8 + 8a6d859 commit 51bec38

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: Week Check πŸ—“οΈ
2+
3+
on:
4+
schedule:
5+
# 맀일 μ˜€μ „ 10μ‹œ, μ˜€ν›„ 6μ‹œ (KST κΈ°μ€€, UTCλ‘œλŠ” 1μ‹œ, 9μ‹œ)
6+
- cron: "0 1,9 * * *"
7+
workflow_dispatch:
8+
pull_request:
9+
10+
jobs:
11+
check-all-prs:
12+
runs-on: ubuntu-latest
13+
permissions:
14+
contents: read
15+
16+
steps:
17+
- name: Check all PRs via GitHub App
18+
id: check
19+
run: |
20+
echo "πŸ” GitHub App을 톡해 λͺ¨λ“  Open PR 검사 쀑..."
21+
22+
response=$(curl -s -X POST "https://github.dalestudy.com/check-weeks" \
23+
-H "Content-Type: application/json" \
24+
-d "{\"repo_owner\": \"${{ github.repository_owner }}\", \"repo_name\": \"${{ github.event.repository.name }}\"}")
25+
26+
echo "response=$response" >> $GITHUB_OUTPUT
27+
echo "$response" | jq '.'
28+
29+
- name: Summary
30+
run: |
31+
response='${{ steps.check.outputs.response }}'
32+
33+
total=$(echo "$response" | jq -r '.total_prs // 0')
34+
checked=$(echo "$response" | jq -r '.checked // 0')
35+
commented=$(echo "$response" | jq -r '.commented // 0')
36+
deleted=$(echo "$response" | jq -r '.deleted // 0')
37+
38+
echo "## 🎯 Week μ„€μ • 체크 μ™„λ£Œ" >> $GITHUB_STEP_SUMMARY
39+
echo "" >> $GITHUB_STEP_SUMMARY
40+
echo "- πŸ“‹ 전체 Open PR: **$total**개" >> $GITHUB_STEP_SUMMARY
41+
echo "- βœ… κ²€μ‚¬ν•œ PR: **$checked**개" >> $GITHUB_STEP_SUMMARY
42+
echo "- πŸ’¬ λŒ“κΈ€ μž‘μ„±ν•œ PR: **$commented**개" >> $GITHUB_STEP_SUMMARY
43+
echo "- πŸ—‘οΈ λŒ“κΈ€ μ‚­μ œν•œ PR: **$deleted**개" >> $GITHUB_STEP_SUMMARY
44+
echo "" >> $GITHUB_STEP_SUMMARY
45+
echo "λ‹€μŒ 체크: $(date -u -d '+1 hour' +'%Y-%m-%d %H:00 UTC')" >> $GITHUB_STEP_SUMMARY

0 commit comments

Comments
Β (0)