mirror of https://github.com/Mai-with-u/MaiBot.git
ci(workflows): 分离Ruff的push和pull_request触发条件
将Ruff的触发条件从同时监听push和pull_request改为分别监听,以优化CI流程并减少不必要的构建pull/798/head^2
parent
6615a004dd
commit
6f03b29bd0
|
|
@ -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
|
||||
|
||||
|
|
@ -1,5 +1,5 @@
|
|||
name: Ruff
|
||||
on: [ push, pull_request ]
|
||||
on: [ push ]
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
|
|
|
|||
Loading…
Reference in New Issue