blob: 9affd16403c07aafeff97f96d41cbcb43cd5702c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
name: Check if pr to main is from dev
on:
pull_request_target:
branches:
- 'main'
jobs:
pr_to_main_from_dev:
if: github.head_ref != 'dev'
runs-on: ubuntu-latest
steps:
- uses: superbrothers/close-pull-request@v3
with:
comment: 'The only allowed pull requests to main are those from dev!'
|