From fcb92ea8e565123a3303f1c1ea8e5f8979873141 Mon Sep 17 00:00:00 2001 From: Mads Bisgaard <126242332+bisgaard-itis@users.noreply.github.com> Date: Fri, 6 Dec 2024 13:23:30 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20ensure=20api=20spec=20ci=20jobs?= =?UTF-8?q?=20only=20run=20during=20prs=20(#6912)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/ci-testing-deploy.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci-testing-deploy.yml b/.github/workflows/ci-testing-deploy.yml index 277a131e5c2..e2eabc80994 100644 --- a/.github/workflows/ci-testing-deploy.yml +++ b/.github/workflows/ci-testing-deploy.yml @@ -2643,7 +2643,7 @@ jobs: system-api-specs: needs: [changes] - if: ${{ needs.changes.outputs.anything-py == 'true' || github.event_name == 'push' }} + if: ${{ needs.changes.outputs.anything-py == 'true' && github.event_name == 'push' && github.event.pull_request != null }} timeout-minutes: 10 name: "[sys] check api-specs are up to date" runs-on: ubuntu-latest @@ -2669,7 +2669,7 @@ jobs: system-backwards-compatibility: needs: [changes, system-api-specs] - if: ${{ needs.changes.outputs.anything-py == 'true' || github.event_name == 'push' }} + if: ${{ needs.changes.outputs.anything-py == 'true' && github.event_name == 'push' && github.event.pull_request != null }} timeout-minutes: 10 name: "[sys] api-server backwards compatibility" runs-on: ubuntu-latest @@ -2693,7 +2693,7 @@ jobs: api-spec-backwards-compatibility: needs: [changes, system-api-specs] - if: ${{ needs.changes.outputs.anything-py == 'true' || github.event_name == 'push' }} + if: ${{ needs.changes.outputs.anything-py == 'true' && github.event_name == 'push' && github.event.pull_request != null }} continue-on-error: true timeout-minutes: 10 name: "api-specs-backwards-compatibility"