Skip to content

Commit

Permalink
Make yq task fail if one of the replacements fails
Browse files Browse the repository at this point in the history
  • Loading branch information
frerikandriessen authored and tekton-robot committed Jan 12, 2022
1 parent 25d9a76 commit 6978108
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions task/yq/0.3/yq.yaml
Expand Up @@ -33,6 +33,9 @@ spec:
workingDir: $(workspaces.source.path)
args: ["$(params.files[*])"]
script: |
/usr/bin/env sh
set -e
for var in "$@"
do
/usr/bin/yq eval -i "$(params.expression)" "$var"
Expand Down

0 comments on commit 6978108

Please sign in to comment.