File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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 }}
You can’t perform that action at this time.
0 commit comments