Commit b82d60be authored by Frank Lee's avatar Frank Lee
Browse files

updated github action for develop branch (#214)

parent 7d15ec7f
...@@ -5,7 +5,7 @@ on: pull_request ...@@ -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: ...@@ -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: ...@@ -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:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment