From a6a7b0c96c6b704137ece7affea7bb377fbb7dee Mon Sep 17 00:00:00 2001 From: krzys-h Date: Tue, 7 Jul 2020 18:37:21 +0200 Subject: [PATCH] Display correct PR target branch as success rather than skipped --- .github/workflows/verify-pr-target.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/verify-pr-target.yml b/.github/workflows/verify-pr-target.yml index f9bc5d73..09cadb19 100644 --- a/.github/workflows/verify-pr-target.yml +++ b/.github/workflows/verify-pr-target.yml @@ -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 \ No newline at end of file + 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' \ No newline at end of file