From 2db41308ea74aba095fcfe21e920e76cb37533ef Mon Sep 17 00:00:00 2001 From: Supper Thomas <78900636@qq.com> Date: Tue, 11 Jul 2023 08:09:08 +0800 Subject: [PATCH] [ci][action] add the repo check for self-use --- .github/workflows/action_tools.yml | 1 + .github/workflows/action_utest.yml | 1 + .github/workflows/file_check.yml | 1 + .github/workflows/static_code_analysis.yml | 1 + 4 files changed, 4 insertions(+) diff --git a/.github/workflows/action_tools.yml b/.github/workflows/action_tools.yml index ec814cb6d5..8df7fb4224 100644 --- a/.github/workflows/action_tools.yml +++ b/.github/workflows/action_tools.yml @@ -34,6 +34,7 @@ jobs: test: runs-on: ubuntu-latest name: Tools + if: github.repository_owner == 'RT-Thread' strategy: fail-fast: false env: diff --git a/.github/workflows/action_utest.yml b/.github/workflows/action_utest.yml index a5e7bc4f91..a346b2388e 100644 --- a/.github/workflows/action_utest.yml +++ b/.github/workflows/action_utest.yml @@ -28,6 +28,7 @@ jobs: test: runs-on: ubuntu-latest name: ${{ matrix.legs.UTEST }} + if: github.repository_owner == 'RT-Thread' strategy: fail-fast: false matrix: diff --git a/.github/workflows/file_check.yml b/.github/workflows/file_check.yml index 8cd2f7423c..050c51f125 100644 --- a/.github/workflows/file_check.yml +++ b/.github/workflows/file_check.yml @@ -6,6 +6,7 @@ jobs: scancode_job: runs-on: ubuntu-latest name: Scan code format and license + if: github.repository_owner == 'RT-Thread' steps: - uses: actions/checkout@v3 - name: Set up Python diff --git a/.github/workflows/static_code_analysis.yml b/.github/workflows/static_code_analysis.yml index 397e04ef1d..c3a74316a9 100644 --- a/.github/workflows/static_code_analysis.yml +++ b/.github/workflows/static_code_analysis.yml @@ -9,6 +9,7 @@ jobs: scancode_job: runs-on: ubuntu-latest name: Static code analysis + if: github.repository_owner == 'RT-Thread' steps: - uses: actions/checkout@v3 - name: Set up Python