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.
This commit is contained in:
Norihiro Kamae
2023-01-06 21:14:50 +01:00
committed by Rodney
parent 301fb48449
commit 00b4d19e77
+2 -1
View File
@@ -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