blob: 59e64b3a8eac835a9cacdd3292bd44016c2e0d9a (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
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'
permissions:
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: superbrothers/close-pull-request@v3
with:
comment: 'The only allowed pull requests to main are those from dev!'
|