2020-07-07 12:19:21 +00:00
|
|
|
name: Verify pull request target
|
|
|
|
|
|
|
|
on: [pull_request]
|
|
|
|
|
|
|
|
jobs:
|
2020-07-07 16:37:21 +00:00
|
|
|
check_pr_target:
|
2020-07-07 12:19:21 +00:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Wrong pull request target
|
2020-07-07 16:37:21 +00:00
|
|
|
run: echo "This pull request targets the master branch. Please edit the pull request to target dev." && exit 1
|
|
|
|
if: github.base_ref == 'master'
|
|
|
|
- name: Correct pull request target
|
|
|
|
run: echo "This pull request targets the correct branch." && exit 0
|
|
|
|
if: github.base_ref != 'master'
|