Browse Source

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

Supper Thomas 1 year ago
parent
commit
2db41308ea

+ 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