[dev] 브랜치 O #22
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: develop_merge_test | |
on: | |
pull_request: | |
types: [opened, synchronize, reopened, ready_for_review, labeled, unlabeled] | |
branches: ["develop"] | |
jobs: | |
check_is_valid_develop_merge_branch: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check if the branch name is valid for develop merge | |
if: ${{ !contains(github.head_ref,'merge-dev') }} | |
run: | | |
echo "This branch is not valid to merge develop. Only branches with 'merge-dev' are allowed to merge to 'develop'." | |
exit 1 | |
check_is_label_develop: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check if label name is develop | |
if: ${{ !contains(github.event.pull_request.labels.*.name,'develop') }} | |
run: | | |
echo "This PR is not valid to merge develop. Only PR with 'develop' label is allowed to merge to 'develop'." | |
exit 1 |