mirror of
https://github.com/hpcaitech/ColossalAI.git
synced 2025-05-05 15:08:18 +00:00
[workflow] fixed the on-merge condition check (#2452)
This commit is contained in:
parent
cfd1d5ee49
commit
483efdabc5
.github/workflows
@ -8,11 +8,10 @@ on:
|
||||
types:
|
||||
- closed
|
||||
|
||||
|
||||
jobs:
|
||||
release:
|
||||
name: Draft Release Post
|
||||
if: github.repository == 'hpcaitech/ColossalAI'
|
||||
if: ( github.event_name == 'workflow_dispatch' || github.event.pull_request.merged == true ) && github.repository == 'hpcaitech/ColossalAI'
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
9
.github/workflows/release_docker.yml
vendored
9
.github/workflows/release_docker.yml
vendored
@ -2,13 +2,16 @@ name: Publish Docker Image to DockerHub
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
release:
|
||||
types: [published]
|
||||
pull_request:
|
||||
paths:
|
||||
- 'version.txt'
|
||||
types:
|
||||
- closed
|
||||
|
||||
jobs:
|
||||
release:
|
||||
name: Publish Docker Image to DockerHub
|
||||
if: github.repository == 'hpcaitech/ColossalAI'
|
||||
if: ( github.event_name == 'workflow_dispatch' || github.event.pull_request.merged == true ) && github.repository == 'hpcaitech/ColossalAI'
|
||||
runs-on: [self-hosted, gpu]
|
||||
container:
|
||||
image: "hpcaitech/docker-in-docker:latest"
|
||||
|
Loading…
Reference in New Issue
Block a user