👷 跳过 PR 仓库为 fork 的情况 (#1905)

This commit is contained in:
uy/sun 2023-04-08 22:29:58 +08:00 committed by GitHub
parent 020705bd4b
commit 1d60714054
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -18,7 +18,23 @@ jobs:
plugin_test: plugin_test:
runs-on: ubuntu-latest runs-on: ubuntu-latest
name: nonebot2 plugin test 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: permissions:
issues: read issues: read
outputs: outputs: