From 00b4d19e772772af2daec16d0a3d6a4aae66f4fa Mon Sep 17 00:00:00 2001 From: Norihiro Kamae Date: Thu, 5 Jan 2023 10:41:58 +0900 Subject: [PATCH] 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. --- .github/workflows/services-json.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/services-json.yml b/.github/workflows/services-json.yml index 6778fa355..fc41a4587 100644 --- a/.github/workflows/services-json.yml +++ b/.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