Skip to content

Commit

Permalink
feat: Add force run all flag for build images
Browse files Browse the repository at this point in the history
Signed-off-by: Ishaan Sehgal <[email protected]>
  • Loading branch information
ishaansehgal99 committed Mar 13, 2024
1 parent 60f464e commit 4fef28b
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/preset-image-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,10 @@ on:
- 'presets/models/supported_models.yaml'
workflow_dispatch:
inputs:
image_tag_name:
description: 'Image Tag'
required: true
force-run-all:
type: boolean
default: false
description: "Test all models for E2E"

permissions:
id-token: write
Expand All @@ -41,11 +42,15 @@ jobs:
submodules: true
fetch-depth: 0

- name: Set FORCE_RUN_ALL Flag
run: echo "FORCE_RUN_ALL=${{ github.event_name == 'workflow_dispatch' && github.event.inputs.force-run-all == 'true' }}" >> $GITHUB_ENV

# This script should output a JSON array of model names
- name: Determine Affected Models
id: affected_models
run: |
PR_BRANCH=${{ github.head_ref }} \
FORCE_RUN_ALL=${{ env.FORCE_RUN_ALL }} \
python3 .github/workflows/kind-cluster/determine_models.py
- name: Print Determined Models
Expand Down

0 comments on commit 4fef28b

Please sign in to comment.