Skip to content

Commit 0b21947

Browse files
committed
fix: 修复工作流触发条件,确保在推送和拉取请求时正确监控相关文件
1 parent d274eb6 commit 0b21947

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

.github/workflows/docker-image.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,22 @@ name: Docker Image CI
33
on:
44
push:
55
branches: [ "master" ]
6+
paths:
7+
- 'Dockerfile'
8+
- '.github/workflows/docker-image.yml'
9+
- 'main.py'
10+
- 'requirements.txt'
11+
- 'app/**'
612
tags:
713
- 'v*'
814
pull_request:
915
branches: [ "master" ]
16+
paths:
17+
- 'Dockerfile'
18+
- '.github/workflows/docker-image.yml'
19+
- 'main.py'
20+
- 'requirements.txt'
21+
- 'app/**'
1022

1123
permissions:
1224
contents: read

0 commit comments

Comments
 (0)