Skip to content

Commit dfe9715

Browse files
committed
[workflow] ufixed the on-merge condition check
1 parent cfd1d5e commit dfe9715

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

.github/workflows/draft_github_release_post.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,10 @@ on:
88
types:
99
- closed
1010

11-
1211
jobs:
1312
release:
1413
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'
1615
runs-on: ubuntu-latest
1716
steps:
1817
- uses: actions/checkout@v2

.github/workflows/release_docker.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,16 @@ name: Publish Docker Image to DockerHub
22

33
on:
44
workflow_dispatch:
5-
release:
6-
types: [published]
5+
pull_request:
6+
paths:
7+
- 'version.txt'
8+
types:
9+
- closed
710

811
jobs:
912
release:
1013
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'
1215
runs-on: [self-hosted, gpu]
1316
container:
1417
image: "hpcaitech/docker-in-docker:latest"

0 commit comments

Comments
 (0)