Skip to content

Commit dba3da1

Browse files
authored
ci: add condition runing (#659)
* ci: operating conditions * chore: update paths * 更新 pkg-pr-new.yml
1 parent fe571e5 commit dba3da1

File tree

3 files changed

+13
-6
lines changed

3 files changed

+13
-6
lines changed

.github/workflows/pkg-pr-new.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,15 @@ name: Publish_Any_Commit
22
on:
33
push:
44
branches: [main]
5+
paths:
6+
- 'packages/components/**'
7+
- 'packages/theme-generator/**'
58
pull_request:
69
branches: [main]
10+
paths:
11+
- 'packages/components/**'
12+
- 'packages/theme-generator/**'
13+
- 'site/**'
714

815
jobs:
916
build:

.github/workflows/publish-components.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
name: PUBLISH_COMPONENTS
22

33
on:
4-
push:
5-
branches: [main]
64
pull_request:
75
types: [closed]
8-
6+
paths:
7+
- packages/components/package.json
98
jobs:
109
modify-components:
10+
if: github.repository == 'Tencent/tdesign' && github.event.pull_request.merged
1111
runs-on: ubuntu-latest
1212
outputs:
1313
components-changed: ${{ steps.components-changed.outputs.changed }}

.github/workflows/pull-request.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
name: MAIN_PULL_REQUEST
22

33
on:
4-
push:
5-
branches: [main]
64
pull_request:
75
types: [closed]
6+
paths:
7+
- 'services/**'
88

99
jobs:
1010
modify-services:
11-
if: github.repository == 'Tencent/tdesign'
11+
if: github.repository == 'Tencent/tdesign' && github.event.pull_request.merged
1212
runs-on: ubuntu-latest
1313
outputs:
1414
services-changed: ${{ steps.services-changed.outputs.changed }}

0 commit comments

Comments
 (0)