Skip to content

Commit

Permalink
chore: GitHub Actions build-test.yml main 브랜치 PR은 develop 브랜치만 가능
Browse files Browse the repository at this point in the history
  • Loading branch information
devwqc committed Nov 8, 2024
1 parent ca6b2a2 commit 1b007ea
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@ jobs:
build-test:
runs-on: ubuntu-latest
steps:
- name: Check source branch for main PR
if: github.base_ref == 'main' && github.head_ref != 'develop'
run: |
echo "PRs to main branch are only allowed from develop branch"
exit 1
- name: Checkout your repository using git
uses: actions/checkout@v4
- name: Install, build, and upload your site
Expand Down

0 comments on commit 1b007ea

Please sign in to comment.