Week Check ποΈ #5
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Week Check ποΈ | |
| on: | |
| schedule: | |
| # λ§€μΌ μ€μ 10μ, μ€ν 6μ (KST κΈ°μ€, UTCλ‘λ 1μ, 9μ) | |
| - cron: "0 1,9 * * *" | |
| workflow_dispatch: | |
| jobs: | |
| check-weeks: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| steps: | |
| - name: Check all PRs via GitHub App | |
| id: check | |
| run: | | |
| echo "π GitHub Appμ ν΅ν΄ λͺ¨λ Open PR κ²μ¬ μ€..." | |
| response=$(curl -s -X POST "https://github.dalestudy.com/check-weeks" \ | |
| -H "Content-Type: application/json" \ | |
| -d "{\"repo_owner\": \"${{ github.repository_owner }}\", \"repo_name\": \"${{ github.event.repository.name }}\"}") | |
| echo "response=$response" >> $GITHUB_OUTPUT | |
| echo "$response" | jq '.' | |
| - name: Summary | |
| run: | | |
| response='${{ steps.check.outputs.response }}' | |
| total=$(echo "$response" | jq -r '.total_prs // 0') | |
| checked=$(echo "$response" | jq -r '.checked // 0') | |
| commented=$(echo "$response" | jq -r '.commented // 0') | |
| deleted=$(echo "$response" | jq -r '.deleted // 0') | |
| echo "## π― Week μ€μ μ²΄ν¬ μλ£" >> $GITHUB_STEP_SUMMARY | |
| echo "" >> $GITHUB_STEP_SUMMARY | |
| echo "- π μ 체 Open PR: **$total**κ°" >> $GITHUB_STEP_SUMMARY | |
| echo "- β κ²μ¬ν PR: **$checked**κ°" >> $GITHUB_STEP_SUMMARY | |
| echo "- π¬ λκΈ μμ±ν PR: **$commented**κ°" >> $GITHUB_STEP_SUMMARY | |
| echo "- ποΈ λκΈ μμ ν PR: **$deleted**κ°" >> $GITHUB_STEP_SUMMARY | |
| echo "" >> $GITHUB_STEP_SUMMARY | |
| echo "λ€μ 체ν¬: $(date -u -d '+1 hour' +'%Y-%m-%d %H:00 UTC')" >> $GITHUB_STEP_SUMMARY |