From b4c75506bffbfec055a52caedf1df4da141038e0 Mon Sep 17 00:00:00 2001 From: kingthorin Date: Tue, 21 Apr 2020 15:03:22 -0400 Subject: [PATCH] Maintain indent in _config.yml when processing (#445) `-I4` per https://github.com/mikefarah/yq/issues/25#issuecomment-583188304 --- .github/workflows/www_stable_update.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/www_stable_update.yml b/.github/workflows/www_stable_update.yml index be3a0db582..ef6164ba5f 100644 --- a/.github/workflows/www_stable_update.yml +++ b/.github/workflows/www_stable_update.yml @@ -98,7 +98,7 @@ jobs: # Copy info.md to all directories (excluding 'images' directories) find . -type d -not -name "images" -execdir cp -v $WSTG_BASE/www/$VERSION_PATH/info.md {} \; # Set stable_version in site config - yq w $WWW_BASE/_config.yml stable_version $VERSION_PATH |sponge $WWW_BASE/_config.yml + yq -I4 w $WWW_BASE/_config.yml stable_version $VERSION_PATH |sponge $WWW_BASE/_config.yml - name: Setup Navigation (Versioned) run: | # Copy the current ToC for manipulation