Skip to content

Commit 424caf2

Browse files
committed
fix: add echo back for crappy hack
1 parent 89821d5 commit 424caf2

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

action.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@ runs:
4747
echo "Updating file"
4848
# Have to include a goofy diff / patch workaround to deal yq removing all whitespace newlines
4949
# See https://github.com/mikefarah/yq/issues/515#issuecomment-1113957629
50-
yq '${{ inputs.yaml_key_path }} = "${{ inputs.new_value }}"' '${{ inputs.yaml_file_path }}' | diff -B '${{ inputs.yaml_file_path }}' - | patch --silent '${{ inputs.yaml_file_path }}' -o -
50+
# Ugh, I need to add the "File updated successfully" to get the patch to work...
51+
yq '${{ inputs.yaml_key_path }} = "${{ inputs.new_value }}"' '${{ inputs.yaml_file_path }}' | diff -B '${{ inputs.yaml_file_path }}' - | patch --silent '${{ inputs.yaml_file_path }}' - && echo "File updated successfully"
5152
5253
echo "Git config setup"
5354
git config user.name ${{ inputs.commit_username }}

0 commit comments

Comments
 (0)