Display correct PR target branch as success rather than skipped
parent
0ef21bfdbb
commit
a6a7b0c96c
|
@ -3,9 +3,12 @@ name: Verify pull request target
|
|||
on: [pull_request]
|
||||
|
||||
jobs:
|
||||
wrong_pr_target:
|
||||
check_pr_target:
|
||||
runs-on: ubuntu-latest
|
||||
if: github.base_ref == 'master'
|
||||
steps:
|
||||
- name: Wrong pull request target
|
||||
run: echo "This pull request targets the master branch. Please edit the pull request to target dev." && exit 1
|
||||
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'
|
Loading…
Reference in New Issue