File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change 8
8
types :
9
9
- closed
10
10
11
-
12
11
jobs :
13
12
release :
14
13
name : Draft Release Post
15
- if : github.repository == 'hpcaitech/ColossalAI'
14
+ if : ( github.event_name == 'workflow_dispatch' || github.event.pull_request.merged == true ) && github.repository == 'hpcaitech/ColossalAI'
16
15
runs-on : ubuntu-latest
17
16
steps :
18
17
- uses : actions/checkout@v2
Original file line number Diff line number Diff line change @@ -2,13 +2,16 @@ name: Publish Docker Image to DockerHub
2
2
3
3
on :
4
4
workflow_dispatch :
5
- release :
6
- types : [published]
5
+ pull_request :
6
+ paths :
7
+ - ' version.txt'
8
+ types :
9
+ - closed
7
10
8
11
jobs :
9
12
release :
10
13
name : Publish Docker Image to DockerHub
11
- if : github.repository == 'hpcaitech/ColossalAI'
14
+ if : ( github.event_name == 'workflow_dispatch' || github.event.pull_request.merged == true ) && github.repository == 'hpcaitech/ColossalAI'
12
15
runs-on : [self-hosted, gpu]
13
16
container :
14
17
image : " hpcaitech/docker-in-docker:latest"
You can’t perform that action at this time.
0 commit comments