mirror of
https://github.com/nonebot/nonebot2.git
synced 2025-06-22 04:18:09 +00:00
👷 CI: 优化触发条件减少无效运行 (#1545)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
parent
f13c1cc980
commit
ee5dcf0d42
4
.github/workflows/codecov.yml
vendored
4
.github/workflows/codecov.yml
vendored
@ -5,6 +5,10 @@ on:
|
|||||||
branches:
|
branches:
|
||||||
- master
|
- master
|
||||||
pull_request:
|
pull_request:
|
||||||
|
paths:
|
||||||
|
- "nonebot/**"
|
||||||
|
- "packages/**"
|
||||||
|
- "tests/**"
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
test:
|
test:
|
||||||
|
6
.github/workflows/publish-bot.yml
vendored
6
.github/workflows/publish-bot.yml
vendored
@ -8,10 +8,15 @@ on:
|
|||||||
issue_comment:
|
issue_comment:
|
||||||
types: [created]
|
types: [created]
|
||||||
|
|
||||||
|
concurrency:
|
||||||
|
group: ${{ github.workflow }}-${{ github.event.issue.number || github.run_id }}
|
||||||
|
cancel-in-progress: true
|
||||||
|
|
||||||
jobs:
|
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
|
||||||
permissions:
|
permissions:
|
||||||
issues: read
|
issues: read
|
||||||
outputs:
|
outputs:
|
||||||
@ -19,6 +24,7 @@ jobs:
|
|||||||
output: ${{ steps.plugin-test.outputs.OUTPUT }}
|
output: ${{ steps.plugin-test.outputs.OUTPUT }}
|
||||||
steps:
|
steps:
|
||||||
- name: Install Poetry
|
- name: Install Poetry
|
||||||
|
if: ${{ !startsWith(github.event_name, 'pull_request') }}
|
||||||
run: pipx install poetry
|
run: pipx install poetry
|
||||||
- name: Setup Python
|
- name: Setup Python
|
||||||
uses: actions/setup-python@v4
|
uses: actions/setup-python@v4
|
||||||
|
Loading…
x
Reference in New Issue
Block a user