We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ca6b2a2 + fe6d43f commit 0d0a3f4Copy full SHA for 0d0a3f4
.github/workflows/build-test.yml
@@ -3,12 +3,19 @@ name: Build Test
3
on:
4
pull_request:
5
branches: [main, develop]
6
+ types: [opened, synchronize, reopened, edited]
7
workflow_dispatch:
8
9
jobs:
10
build-test:
11
runs-on: ubuntu-latest
12
steps:
13
+ - name: Check source branch for main PR
14
+ if: github.base_ref == 'main' && github.head_ref != 'develop'
15
+ run: |
16
+ echo "PRs to main branch are only allowed from develop branch"
17
+ exit 1
18
+
19
- name: Checkout your repository using git
20
uses: actions/checkout@v4
21
- name: Install, build, and upload your site
0 commit comments