Skip to content

chore: GitHub Actions build-test.yml main 브랜치 PR은 develop 브랜치만 가능 #33

chore: GitHub Actions build-test.yml main 브랜치 PR은 develop 브랜치만 가능

chore: GitHub Actions build-test.yml main 브랜치 PR은 develop 브랜치만 가능 #33

Workflow file for this run

name: Build Test
on:
pull_request:
branches: [main, develop]
workflow_dispatch:
jobs:
build-test:
runs-on: ubuntu-latest
steps:

Check failure on line 11 in .github/workflows/build-test.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/build-test.yml

Invalid workflow file

You have an error in your yaml syntax on line 11
- 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