v1.0.0 #8
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
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 μ λ¬ |