Skip to content

Commit

Permalink
ensure job runs also if not in pr
Browse files Browse the repository at this point in the history
  • Loading branch information
bisgaard-itis committed Dec 9, 2024
1 parent 661f229 commit 5d08cff
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/ci-testing-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2664,11 +2664,14 @@ jobs:

system-api-specs:
needs: [changes]
if: ${{ needs.changes.outputs.anything-py == 'true' && github.event_name == 'push' && github.event.pull_request != null }}
if: ${{ needs.changes.outputs.anything-py == 'true' || github.event_name == 'push' }}
timeout-minutes: 10
name: "[sys] check api-specs are up to date"
runs-on: ubuntu-latest
steps:
- name: Ensure job passes if not PR # ensure pass so upstream jobs which depend on this will run (dockerhub deployment)
if: ${{ github.event.pull_request != null }}
run: echo "::notice Passing job because not in PR"; exit 0
- name: setup python environment
uses: actions/setup-python@v5
with:
Expand All @@ -2690,11 +2693,14 @@ jobs:
system-backwards-compatibility:
needs: [changes, system-api-specs]
if: ${{ needs.changes.outputs.anything-py == 'true' && github.event_name == 'push' && github.event.pull_request != null }}
if: ${{ needs.changes.outputs.anything-py == 'true' || github.event_name == 'push' }}
timeout-minutes: 10
name: "[sys] api-server backwards compatibility"
runs-on: ubuntu-latest
steps:
- name: Ensure job passes if not PR # ensure pass so upstream jobs which depend on this will run (dockerhub deployment)
if: ${{ github.event.pull_request != null }}
run: echo "::notice Passing job because not in PR"; exit 0
- name: setup python environment
uses: actions/setup-python@v5
with:
Expand Down

0 comments on commit 5d08cff

Please sign in to comment.