-
Notifications
You must be signed in to change notification settings - Fork 1
35 lines (30 loc) Β· 1.01 KB
/
release-drafter.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
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 μ λ¬