From 80569f355d4c6855ec9190f43f9f25037af6fce5 Mon Sep 17 00:00:00 2001 From: koneill Date: Thu, 5 Sep 2024 12:52:15 -0700 Subject: [PATCH] fix yaml tab issue that got through linter --- .github/workflows/renderNotebooks.yaml | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/.github/workflows/renderNotebooks.yaml b/.github/workflows/renderNotebooks.yaml index 0a28037..eb4ff7d 100644 --- a/.github/workflows/renderNotebooks.yaml +++ b/.github/workflows/renderNotebooks.yaml @@ -52,17 +52,17 @@ jobs: with: image: ${{ steps.meta_rmd.outputs.tags }} options: -v ${{ github.workspace }}:/workspace --rm -u root - run: | - CHANGED_RMD_FILES=$(git diff --name-only HEAD^ HEAD -- '*.Rmd' '*.rmd') - if [ -n "$CHANGED_RMD_FILES" ]; then - echo "Changed R Markdown files:" - echo "$CHANGED_RMD_FILES" - for RMD in $CHANGED_RMD_FILES; do - Rscript -e 'for (f in commandArgs(TRUE)) if (file.exists(f)) rmarkdown::render(f, output_format = "all")' /workspace/$RMD - done - else - echo "No changed R Markdown files found. Skipping execution." - fi + run: | + CHANGED_RMD_FILES=$(git diff --name-only HEAD^ HEAD -- '*.Rmd' '*.rmd') + if [ -n "$CHANGED_RMD_FILES" ]; then + echo "Changed R Markdown files:" + echo "$CHANGED_RMD_FILES" + for RMD in $CHANGED_RMD_FILES; do + Rscript -e 'for (f in commandArgs(TRUE)) if (file.exists(f)) rmarkdown::render(f, output_format = "all")' /workspace/$RMD + done + else + echo "No changed R Markdown files found. Skipping execution." + fi - name: Run Docker container to compile assets