Skip to content

[refactor] main으로 PR은 develop에서만 가능하게 변경 #34

[refactor] main으로 PR은 develop에서만 가능하게 변경

[refactor] main으로 PR은 develop에서만 가능하게 변경 #34

Workflow file for this run

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