From 7b76c8f67b51fdfb0a652e9d1bba7d2a428be73b Mon Sep 17 00:00:00 2001 From: Christian Hopps Date: Fri, 31 May 2024 13:08:16 -0400 Subject: [PATCH] ci: only run conflict check on pull-requests This change will stop this action from running on forked repos. Previously whenever one pushed a change to one's development branch the action would "run but skip" which still generated an email notifications and thus was very annoying. :) Signed-off-by: Christian Hopps --- .github/workflows/conflicts.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/conflicts.yml b/.github/workflows/conflicts.yml index 100f557e02..4b4e99facf 100644 --- a/.github/workflows/conflicts.yml +++ b/.github/workflows/conflicts.yml @@ -1,9 +1,8 @@ name: Add a conflict label if PR needs to rebase on: - push: pull_request_target: - types: [synchronize] + types: [opened, reopened, synchronize] jobs: conflicts: