ci(workflows): 分离Ruff的push和pull_request触发条件
将Ruff的触发条件从同时监听push和pull_request改为分别监听,以优化CI流程并减少不必要的构建
This commit is contained in:
9
.github/workflows/ruff-pr.yml
vendored
Normal file
9
.github/workflows/ruff-pr.yml
vendored
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
name: Ruff
|
||||||
|
on: [ pull_request ]
|
||||||
|
jobs:
|
||||||
|
ruff:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- uses: astral-sh/ruff-action@v3
|
||||||
|
|
||||||
2
.github/workflows/ruff.yml
vendored
2
.github/workflows/ruff.yml
vendored
@@ -1,5 +1,5 @@
|
|||||||
name: Ruff
|
name: Ruff
|
||||||
on: [ push, pull_request ]
|
on: [ push ]
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
contents: write
|
contents: write
|
||||||
|
|||||||
Reference in New Issue
Block a user