From 3eb36ed3fd7cf75963a42ff2d6c68b9ee94af24d Mon Sep 17 00:00:00 2001 From: Mads Bisgaard Date: Fri, 6 Dec 2024 11:20:50 +0100 Subject: [PATCH] ensure the workflow can only run during prs --- .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"