Skip to content

Commit 5d08cff

Browse files
committed
ensure job runs also if not in pr
1 parent 661f229 commit 5d08cff

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.github/workflows/ci-testing-deploy.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2664,11 +2664,14 @@ jobs:
26642664

26652665
system-api-specs:
26662666
needs: [changes]
2667-
if: ${{ needs.changes.outputs.anything-py == 'true' && github.event_name == 'push' && github.event.pull_request != null }}
2667+
if: ${{ needs.changes.outputs.anything-py == 'true' || github.event_name == 'push' }}
26682668
timeout-minutes: 10
26692669
name: "[sys] check api-specs are up to date"
26702670
runs-on: ubuntu-latest
26712671
steps:
2672+
- name: Ensure job passes if not PR # ensure pass so upstream jobs which depend on this will run (dockerhub deployment)
2673+
if: ${{ github.event.pull_request != null }}
2674+
run: echo "::notice Passing job because not in PR"; exit 0
26722675
- name: setup python environment
26732676
uses: actions/setup-python@v5
26742677
with:
@@ -2690,11 +2693,14 @@ jobs:
26902693
26912694
system-backwards-compatibility:
26922695
needs: [changes, system-api-specs]
2693-
if: ${{ needs.changes.outputs.anything-py == 'true' && github.event_name == 'push' && github.event.pull_request != null }}
2696+
if: ${{ needs.changes.outputs.anything-py == 'true' || github.event_name == 'push' }}
26942697
timeout-minutes: 10
26952698
name: "[sys] api-server backwards compatibility"
26962699
runs-on: ubuntu-latest
26972700
steps:
2701+
- name: Ensure job passes if not PR # ensure pass so upstream jobs which depend on this will run (dockerhub deployment)
2702+
if: ${{ github.event.pull_request != null }}
2703+
run: echo "::notice Passing job because not in PR"; exit 0
26982704
- name: setup python environment
26992705
uses: actions/setup-python@v5
27002706
with:

0 commit comments

Comments
 (0)