mirror of
https://github.com/hpcaitech/ColossalAI.git
synced 2025-06-25 15:01:43 +00:00
updated github action for develop branch (#214)
This commit is contained in:
parent
7d15ec7fe2
commit
b82d60be02
6
.github/workflows/PR_CI.yml
vendored
6
.github/workflows/PR_CI.yml
vendored
@ -5,7 +5,7 @@ on: pull_request
|
|||||||
jobs:
|
jobs:
|
||||||
cancel_previous_workflow:
|
cancel_previous_workflow:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
if: github.event.pull_request.draft == false && github.base_ref == 'main' && github.event.pull_request.base.repo.full_name == 'hpcaitech/ColossalAI'
|
if: github.event.pull_request.draft == false && (github.base_ref == 'main' || github.base_ref == 'develop') && github.event.pull_request.base.repo.full_name == 'hpcaitech/ColossalAI'
|
||||||
steps:
|
steps:
|
||||||
- name: Cancel Previous Runs
|
- name: Cancel Previous Runs
|
||||||
uses: styfle/cancel-workflow-action@0.9.1
|
uses: styfle/cancel-workflow-action@0.9.1
|
||||||
@ -15,7 +15,7 @@ jobs:
|
|||||||
assign_reviewer:
|
assign_reviewer:
|
||||||
name: Assign Reviewer for PR
|
name: Assign Reviewer for PR
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
if: github.event.pull_request.draft == false && github.base_ref == 'main' && github.event.pull_request.base.repo.full_name == 'hpcaitech/ColossalAI' && toJson(github.event.pull_request.requested_reviewers) == '[]'
|
if: github.event.pull_request.draft == false && (github.base_ref == 'main' || github.base_ref == 'develop') && github.event.pull_request.base.repo.full_name == 'hpcaitech/ColossalAI' && toJson(github.event.pull_request.requested_reviewers) == '[]'
|
||||||
steps:
|
steps:
|
||||||
- uses: kentaro-m/auto-assign-action@v1.2.1
|
- uses: kentaro-m/auto-assign-action@v1.2.1
|
||||||
with:
|
with:
|
||||||
@ -23,7 +23,7 @@ jobs:
|
|||||||
|
|
||||||
build:
|
build:
|
||||||
name: Build and Test Colossal-AI
|
name: Build and Test Colossal-AI
|
||||||
if: ${{ always() }} && github.event.pull_request.draft == false && github.base_ref == 'main' && github.event.pull_request.base.repo.full_name == 'hpcaitech/ColossalAI'
|
if: ${{ always() }} && github.event.pull_request.draft == false && (github.base_ref == 'main' || github.base_ref == 'develop') && github.event.pull_request.base.repo.full_name == 'hpcaitech/ColossalAI'
|
||||||
needs: [cancel_previous_workflow, assign_reviewer]
|
needs: [cancel_previous_workflow, assign_reviewer]
|
||||||
runs-on: [self-hosted, gpu]
|
runs-on: [self-hosted, gpu]
|
||||||
container:
|
container:
|
||||||
|
Loading…
Reference in New Issue
Block a user