File tree Expand file tree Collapse file tree 1 file changed +44
-0
lines changed Expand file tree Collapse file tree 1 file changed +44
-0
lines changed Original file line number Diff line number Diff line change 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+
9+ jobs :
10+ check-all-prs :
11+ runs-on : ubuntu-latest
12+ permissions :
13+ contents : read
14+
15+ steps :
16+ - name : Check all PRs via GitHub App
17+ id : check
18+ run : |
19+ echo "π GitHub Appμ ν΅ν΄ λͺ¨λ Open PR κ²μ¬ μ€..."
20+
21+ response=$(curl -s -X POST "https://github.dalestudy.com/check-weeks" \
22+ -H "Content-Type: application/json" \
23+ -d "{\"repo_owner\": \"${{ github.repository_owner }}\", \"repo_name\": \"${{ github.event.repository.name }}\"}")
24+
25+ echo "response=$response" >> $GITHUB_OUTPUT
26+ echo "$response" | jq '.'
27+
28+ - name : Summary
29+ run : |
30+ response='${{ steps.check.outputs.response }}'
31+
32+ total=$(echo "$response" | jq -r '.total_prs // 0')
33+ checked=$(echo "$response" | jq -r '.checked // 0')
34+ commented=$(echo "$response" | jq -r '.commented // 0')
35+ deleted=$(echo "$response" | jq -r '.deleted // 0')
36+
37+ echo "## π― Week μ€μ μ²΄ν¬ μλ£" >> $GITHUB_STEP_SUMMARY
38+ echo "" >> $GITHUB_STEP_SUMMARY
39+ echo "- π μ 체 Open PR: **$total**κ°" >> $GITHUB_STEP_SUMMARY
40+ echo "- β
κ²μ¬ν PR: **$checked**κ°" >> $GITHUB_STEP_SUMMARY
41+ echo "- π¬ λκΈ μμ±ν PR: **$commented**κ°" >> $GITHUB_STEP_SUMMARY
42+ echo "- ποΈ λκΈ μμ ν PR: **$deleted**κ°" >> $GITHUB_STEP_SUMMARY
43+ echo "" >> $GITHUB_STEP_SUMMARY
44+ echo "λ€μ 체ν¬: $(date -u -d '+1 hour' +'%Y-%m-%d %H:00 UTC')" >> $GITHUB_STEP_SUMMARY
You canβt perform that action at this time.
0 commit comments