Skip to content

Commit

Permalink
Simplify the condition for generate-constraints (#45410)
Browse files Browse the repository at this point in the history
Constraints generation needs ci-image - so we should base it's running
on the need to whether to create the images.
  • Loading branch information
potiuk authored Jan 5, 2025
1 parent ca98be9 commit 8059a57
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -248,10 +248,7 @@ jobs:
name: "Generate constraints"
needs: [build-info, build-ci-images]
uses: ./.github/workflows/generate-constraints.yml
if: >
needs.build-info.outputs.canary-run == 'true' ||
(needs.build-info.outputs.ci-image-build == 'true' &&
needs.build-info.outputs.only-new-ui-files != 'true')
if: needs.build-info.outputs.ci-image-build == 'true'
with:
runs-on-as-json-public: ${{ needs.build-info.outputs.runs-on-as-json-public }}
python-versions-list-as-string: ${{ needs.build-info.outputs.python-versions-list-as-string }}
Expand Down

0 comments on commit 8059a57

Please sign in to comment.