chore: GitHub Actions build-test.yml main 브랜치 PR은 develop 브랜치만 가능 #33
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: Build Test | ||
on: | ||
pull_request: | ||
branches: [main, develop] | ||
workflow_dispatch: | ||
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 | ||
uses: withastro/action@v3 |