提交 c7fa5c24 编写于 作者: S Shenghang Tsai 提交者: GitHub

Run check_license_and_format in every branch (#3683)

* run check_license_and_format in every branch

* wildcard match any branch

* base_ref

* rm conditon check_license_and_format

* fix branch name
Co-authored-by: Ntsai <caishenghang@oneflow.org>
Former-commit-id: 6bf2fcc7
上级 52e5f53e
......@@ -4,7 +4,7 @@ on:
pull_request:
types: [synchronize, opened, reopened, ready_for_review]
branches:
- master
- '*'
paths-ignore:
- '**.md'
- '.gitignore'
......@@ -27,7 +27,7 @@ jobs:
mirror_third_party:
name: Mirror third party dependencies
runs-on: ubuntu-latest
if: github.event.pull_request.draft == false
if: github.event.pull_request.draft == false && github.base_ref == 'master'
steps:
- uses: actions/checkout@v2
- name: Mirror dependencies to aliyun
......@@ -43,7 +43,7 @@ jobs:
needs: check_license_and_format
name: CUDA
runs-on: [self-hosted, linux, gpu]
if: github.event.pull_request.draft == false
if: github.event.pull_request.draft == false && github.base_ref == 'master'
steps:
- name: Fix permissions
run: |
......@@ -123,7 +123,7 @@ jobs:
needs: [check_license_and_format, build_and_test_cuda, mirror_third_party]
name: XLA
runs-on: [self-hosted, linux, gpu]
if: github.event.pull_request.draft == false
if: github.event.pull_request.draft == false && github.base_ref == 'master'
steps:
- name: Fix permissions
run: |
......@@ -159,7 +159,7 @@ jobs:
needs: [check_license_and_format, build_and_test_cuda]
name: CPU-only
runs-on: [self-hosted, linux, gpu]
if: github.event.pull_request.draft == false
if: github.event.pull_request.draft == false && github.base_ref == 'master'
steps:
- name: Fix permissions
run: |
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册