Skip to content

Commit

Permalink
Update env path logic
Browse files Browse the repository at this point in the history
  • Loading branch information
DeeAjayi committed Nov 19, 2024
1 parent 26d458d commit 05a7edf
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,14 @@ function main() {
}
currentObj = currentObj.get(key);
}
currentObj.get(subPathKeys[subPathKeys.length - 1]).set('env', parsed);
if (parsed) {
currentObj.get(subPathKeys[subPathKeys.length - 1]).set('env', parsed);
}
currentObj.get(subPathKeys[subPathKeys.length - 1]).get('image').set('tag', imageTag);
} else {
doc.set('env', parsed);
if (parsed) {
doc.set('env', parsed);
}
doc.get('image').set('tag', imageTag);
}

Expand Down

0 comments on commit 05a7edf

Please sign in to comment.