Skip to content

Commit

Permalink
ensure the workflow can only run during prs
Browse files Browse the repository at this point in the history
  • Loading branch information
bisgaard-itis committed Dec 6, 2024
1 parent be48a0d commit 3eb36ed
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci-testing-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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"
Expand Down

0 comments on commit 3eb36ed

Please sign in to comment.