Skip to content

Commit fa0eaad

Browse files
authored
Merge pull request #6 from evgenii-d/dev
Add CORS option
2 parents b9cea3a + a1f290e commit fa0eaad

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

.github/workflows/enforce_main.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: Enforce Main Branch
2+
3+
on:
4+
pull_request:
5+
branches: main
6+
7+
jobs:
8+
check_branch:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Enforce main branch on pull requests
12+
if: github.head_ref != 'dev'
13+
run: |
14+
echo "Merge to main branch allowed only from dev"
15+
exit 1
16+

0 commit comments

Comments
 (0)