코레아 1.34v 배포 #134
This file contains 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
# .github/workflows/pr-stats.yml | |
name: PR Stats and Notifications | |
on: | |
pull_request: | |
types: | |
- closed # PR이 닫힐 때 트리거 | |
jobs: | |
pr-stats-job: | |
if: github.event.pull_request.merged == true # PR이 merge된 경우에만 실행 | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Setup Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.x' # Python 3.x 버전 사용 | |
- name: Install Python dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install slack_sdk requests | |
- name: Run PR Stats | |
uses: "naver/[email protected]" | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
count: 15 | |
- name: Analyze PR Stats and Notify | |
run: | | |
python .github/scripts/pr-stats.py | |
env: | |
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} | |
PR_HTML_URL: ${{ github.event.pull_request.html_url }} | |
ASSIGNEE: ${{ github.event.pull_request.assignee.login }} | |
PR_NUMBER: ${{ github.event.pull_request.number }} |