From 1d60714054389701807bcbff2709dcc3aa035333 Mon Sep 17 00:00:00 2001 From: uy/sun Date: Sat, 8 Apr 2023 22:29:58 +0800 Subject: [PATCH] =?UTF-8?q?:construction=5Fworker:=20=E8=B7=B3=E8=BF=87=20?= =?UTF-8?q?PR=20=E4=BB=93=E5=BA=93=E4=B8=BA=20fork=20=E7=9A=84=E6=83=85?= =?UTF-8?q?=E5=86=B5=20(#1905)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/noneflow.yml | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/.github/workflows/noneflow.yml b/.github/workflows/noneflow.yml index 700fec01..ff34190a 100644 --- a/.github/workflows/noneflow.yml +++ b/.github/workflows/noneflow.yml @@ -18,7 +18,23 @@ jobs: plugin_test: runs-on: ubuntu-latest name: nonebot2 plugin test - if: github.event_name != 'issue_comment' || !github.event.issue.pull_request + if: | + !( + ( + github.event.pull_request && + ( + github.event.pull_request.head.repo.fork || + !( + contains(github.event.pull_request.labels.*.name, 'Plugin') || + contains(github.event.pull_request.labels.*.name, 'Adapter') || + contains(github.event.pull_request.labels.*.name, 'Bot') + ) + ) + ) || + ( + github.event_name == 'issue_comment' && github.event.issue.pull_request + ) + ) permissions: issues: read outputs: