Skip to content

Commit

Permalink
修改限制目录匹配规则
Browse files Browse the repository at this point in the history
添加测试脚本action限制
  • Loading branch information
RSS1102 committed Oct 22, 2024
1 parent 2671105 commit 3956632
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 6 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ on:
branches: [main, dev]
pull_request:
branches: [main, dev]
paths: # 这里是用来指定哪个文件更改,才会触发的
- 'src/**'
- 'package.json'
- 'types/**'
- 'examples/**'

jobs:
build:
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/pr-merge-dev-npm_preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,10 @@ on:
types:
- closed
paths: # 这里是用来指定哪个文件更改,才会触发的
- 'src/**/*.js'
- 'src/**/*.scss'
- 'src/**'
- 'package.json'
- 'types/**'
- 'build/*.js'
- 'examples/**'

permissions:
pull-requests: write
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/pr-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,10 @@ on:
types:
- closed
paths: # 这里是用来指定哪个文件更改,才会触发的
- 'src/**/*.js'
- 'src/**/*.scss'
- 'src/**'
- 'package.json'
- 'types/**'
- 'build/*.js'
- 'examples/**'

jobs:
remove_assets:
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/pr-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@ name: PR Test
on:
pull_request_target:
branches: [main, dev]
paths: # 这里是用来指定哪个文件更改,才会触发的
- 'src/**'
- 'package.json'
- 'types/**'
- 'examples/**'

jobs:
build:
Expand Down

0 comments on commit 3956632

Please sign in to comment.