Skip to content

Commit 1b007ea

Browse files
committed
chore: GitHub Actions build-test.yml main 브랜치 PR은 develop 브랜치만 가능
1 parent ca6b2a2 commit 1b007ea

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

.github/workflows/build-test.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,12 @@ jobs:
99
build-test:
1010
runs-on: ubuntu-latest
1111
steps:
12+
- name: Check source branch for main PR
13+
if: github.base_ref == 'main' && github.head_ref != 'develop'
14+
run: |
15+
echo "PRs to main branch are only allowed from develop branch"
16+
exit 1
17+
1218
- name: Checkout your repository using git
1319
uses: actions/checkout@v4
1420
- name: Install, build, and upload your site

0 commit comments

Comments
 (0)