mirror of
https://github.com/nonebot/nonebot2.git
synced 2024-11-28 03:46:54 +08:00
🧑💻 CI: 修复 NoneFlow reaction 范围 (#2685)
This commit is contained in:
parent
9d14f72249
commit
34770e4463
42
.github/workflows/noneflow.yml
vendored
42
.github/workflows/noneflow.yml
vendored
@ -15,9 +15,33 @@ concurrency:
|
|||||||
cancel-in-progress: false
|
cancel-in-progress: false
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
check:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
name: check
|
||||||
|
# do not run on forked PRs, do not run on not related issues, do not run on pr comments
|
||||||
|
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
|
||||||
|
)
|
||||||
|
)
|
||||||
|
steps:
|
||||||
|
- run: echo "Check passed"
|
||||||
reaction:
|
reaction:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
name: reaction
|
name: reaction
|
||||||
|
needs: check
|
||||||
if: |
|
if: |
|
||||||
(
|
(
|
||||||
github.event_name == 'issue_comment' &&
|
github.event_name == 'issue_comment' &&
|
||||||
@ -51,23 +75,7 @@ jobs:
|
|||||||
plugin_test:
|
plugin_test:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
name: nonebot2 plugin test
|
name: nonebot2 plugin test
|
||||||
if: |
|
needs: check
|
||||||
!(
|
|
||||||
(
|
|
||||||
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:
|
||||||
|
Loading…
Reference in New Issue
Block a user