File tree Expand file tree Collapse file tree 1 file changed +45
-0
lines changed Expand file tree Collapse file tree 1 file changed +45
-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+ 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
You canβt perform that action at this time.
0 commit comments