gha: Add workflow to check that PRs target trunk
This commit is contained in:
15
.github/workflows/pr_branch_check.yml
vendored
Normal file
15
.github/workflows/pr_branch_check.yml
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
name: Check that the PR is targetting trunk
|
||||
|
||||
on: [ pull_request ]
|
||||
|
||||
jobs:
|
||||
pr_branch_check:
|
||||
name: Check that the PR is targetting trunk
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Check that the PR is targetting trunk
|
||||
if: ${{ github.base_ref != 'trunk' }}
|
||||
run: |
|
||||
set -e
|
||||
echo "The PR is not targetting the trunk branch, please fix that."
|
||||
false
|
||||
Reference in New Issue
Block a user