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