Skip to content

Commit

Permalink
chore: 릴리즈노트 깃헙 플로 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
mikekks committed Jan 31, 2025
1 parent 3772341 commit f56d29a
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Generate Release Draft

on:
push:
branches:
- 'release/*' # 🎯 release/로 시작하는 브랜치만 타겟

jobs:
update-release-draft:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Get the branch name
id: get_branch
run: |
echo "BRANCH_NAME=${GITHUB_REF#refs/heads/}" >> $GITHUB_ENV
- name: Set target branch
id: set_target_branch
run: |
if [[ "${{ env.BRANCH_NAME }}" == release/* ]]; then
echo "TARGET_BRANCH=${{ env.BRANCH_NAME }}" >> $GITHUB_ENV
else
echo "TARGET_BRANCH=main" >> $GITHUB_ENV # 기본값 설정
fi
- name: Run Release Drafter
uses: release-drafter/release-drafter@v5
with:
config-name: release-drafter-config.yml
env:
GITHUB_TOKEN: ${{ secrets.RELEASE_NOTE_GITHUB_TOKEN }}
TARGET_BRANCH: ${{ env.TARGET_BRANCH }} # 동적으로 설정된 target-branch 전달

0 comments on commit f56d29a

Please sign in to comment.