Skip to content

Commit

Permalink
fix dags only deploy case
Browse files Browse the repository at this point in the history
  • Loading branch information
neel-astro committed Sep 26, 2024
1 parent 360a632 commit 5d4c8eb
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,11 @@ runs:
git fetch origin $branch
files=$(git diff --name-only ${{ github.event.before }} ${{ github.event.after }})
echo "files changed: $files"
DAGS_ONLY_DEPLOY=true
if [[ ${{ inputs.deploy-type }} == 'image-and-dags' ]]; then
DAGS_ONLY_DEPLOY=false
fi
SKIP_IMAGE_OR_DAGS_DEPLOY=true
Expand All @@ -368,7 +372,7 @@ runs:
if [[ $file =~ ^"$root_folder".* ]]; then
echo $file is part of the input root folder
SKIP_IMAGE_OR_DAGS_DEPLOY=false
if [[ $file != *"dags/"* && ${{ inputs.deploy-type }} != 'dags-only' ]]; then
if [[ $file != *"dags/"* && ${{ inputs.deploy-type }} == 'infer' ]]; then
echo $file is not part of dags folder, triggering a image deploy
DAGS_ONLY_DEPLOY=false
break
Expand Down

0 comments on commit 5d4c8eb

Please sign in to comment.