Skip to content

Commit 755b51d

Browse files
committed
✅ ci: 更新工作流以支持主分支和主分支的推送
1 parent 97ff40f commit 755b51d

File tree

3 files changed

+9
-7
lines changed

3 files changed

+9
-7
lines changed

.github/workflows/github-release.yml

+1-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@ on:
33
push:
44
paths:
55
- 'res/reference_audio/**'
6-
branches:
7-
- master
6+
branches: [main, master]
87
tags-ignore:
98
- '*' # Ignore tags
109

.github/workflows/python-publish.yml

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ name: Publish package to PyPI
22

33
on:
44
push:
5+
branches: [main, master]
56
tags:
67
- 'v*' # 匹配"v1.0.0"、"v1.0.0-alpha"等发布标签
78

.github/workflows/ruff-check.yml

+7-5
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
name: Ruff Check
1+
name: Ruff Lint
22

33
on:
44
push:
5-
branches: [ "*" ]
5+
branches: [main, master]
66
pull_request:
77
paths:
8-
- "nonebot_plugin_fishspeech_tts/**"
9-
8+
- nonebot_plugin_fishspeech_tts/**
9+
- pyproject.toml
1010

1111
jobs:
1212
ruff:
@@ -15,5 +15,7 @@ jobs:
1515
steps:
1616
- uses: actions/checkout@v4
1717

18-
- name: Run Ruff Lint
18+
- name: Run Ruff
1919
uses: chartboost/ruff-action@v1
20+
with:
21+
version: 0.7.0

0 commit comments

Comments
 (0)