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 <chopps@labn.net>
This commit is contained in:
Christian Hopps 2024-05-31 13:08:16 -04:00
parent 8954dd3a6b
commit 7b76c8f67b

View file

@ -1,9 +1,8 @@
name: Add a conflict label if PR needs to rebase name: Add a conflict label if PR needs to rebase
on: on:
push:
pull_request_target: pull_request_target:
types: [synchronize] types: [opened, reopened, synchronize]
jobs: jobs:
conflicts: conflicts: