Docs/red black tree #49
Workflow file for this run
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: Base Branch Check | |
on: | |
pull_request: | |
branches: [main] # 검사할 브랜치 목록 | |
jobs: | |
base-branch-check: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Check Base Branch | |
run: | | |
if [[ "${{ github.event.pull_request.base.ref }}" != "main" ]]; then | |
echo "Base branch should be 'main'. Please change it." | |
exit 1 | |
fi |