소스 검색

[ci][action] add the repo check for self-use

Supper Thomas 2 년 전
부모
커밋
2db41308ea
4개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      .github/workflows/action_tools.yml
  2. 1 0
      .github/workflows/action_utest.yml
  3. 1 0
      .github/workflows/file_check.yml
  4. 1 0
      .github/workflows/static_code_analysis.yml

+ 1 - 0
.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:

+ 1 - 0
.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:

+ 1 - 0
.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

+ 1 - 0
.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