From 9eee13dee831318bacbf7d7005a37106811333c7 Mon Sep 17 00:00:00 2001 From: Massimiliano Giacometti Date: Fri, 22 Dec 2023 10:04:14 +0100 Subject: [PATCH] Update check_target_on_pr.yml --- .github/workflows/check_target_on_pr.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/check_target_on_pr.yml b/.github/workflows/check_target_on_pr.yml index 62883623f..de184c81d 100644 --- a/.github/workflows/check_target_on_pr.yml +++ b/.github/workflows/check_target_on_pr.yml @@ -9,3 +9,7 @@ jobs: run: exit 0 - if: ${{ github.event.pull_request.base.ref != 'dev' }} run: exit 1 + - if: ${{ github.event.push.ref == 'refs/heads/master' }} + run: exit 1 + - if: ${{ github.event.push.ref != 'refs/heads/master' }} + run: exit 0