Просмотр исходного кода

CI: Revise repository conditions to validate JSON schema of services

This commit blocks schema validation every day in repositories other
than `obsproject`. Also enables service_check if the owner triggers it
manually.
Norihiro Kamae 3 лет назад
Родитель
Сommit
00b4d19e77
1 измененных файлов с 2 добавлено и 1 удалено
  1. 2 1
      .github/workflows/services-json.yml

+ 2 - 1
.github/workflows/services-json.yml

@@ -17,6 +17,7 @@ jobs:
   schema:
     name: Schema
     runs-on: [ubuntu-20.04]
+    if: ${{ github.repository_owner == 'obsproject' || github.event_name != 'schedule' }}
     steps:
       - name: Checkout
         uses: actions/checkout@v3
@@ -46,7 +47,7 @@ jobs:
     name: Service Check
     runs-on: ubuntu-20.04
     needs: schema
-    if: ${{ github.repository_owner == 'obsproject' && (github.event_name == 'schedule' || github.event_name == 'workflow_dispatch') }}
+    if: ${{ github.repository_owner == 'obsproject' && github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' }}
 
     steps:
       - name: Checkout