From 25a493470d9444f79486f857bb269e8298aa2b55 Mon Sep 17 00:00:00 2001 From: cansavvy Date: Thu, 2 May 2024 13:36:04 -0700 Subject: [PATCH] Needs both? --- .github/workflows/render-all.yml | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/.github/workflows/render-all.yml b/.github/workflows/render-all.yml index f592a06..94fdeee 100644 --- a/.github/workflows/render-all.yml +++ b/.github/workflows/render-all.yml @@ -4,7 +4,7 @@ on: workflow_dispatch: push: branches: [ main, staging ] - + jobs: yaml-check: name: Load user automation choices @@ -22,7 +22,7 @@ jobs: toggle_coursera: "${{ env.RENDER_COURSERA }}" toggle_leanpub: "${{ env.RENDER_LEANPUB }}" rendering_docker_image: "${{ env.RENDERING_DOCKER_IMAGE }}" - + clean-docs: needs: yaml-check runs-on: ubuntu-latest @@ -45,11 +45,11 @@ jobs: render-quarto-book: name: Render Quarto Book - needs: clean-docs + needs: [yaml-check, clean-docs] runs-on: ubuntu-latest container: image: ${{needs.yaml-check.outputs.rendering_docker_image}} - + steps: - name: checkout uses: actions/checkout@v4 @@ -64,7 +64,6 @@ jobs: git config --global user.email 'github-actions[bot]@users.noreply.github.com' echo ${{needs.yaml-check.outputs.rendering_docker_image}} - # Run quarto::quarto_render() - name: Run quarto render id: quarto-render @@ -117,7 +116,7 @@ jobs: - name: Run TOC-less version of render id: toc_less_quarto run: Rscript -e "quarto::quarto_render('.', quarto_args = c('--output-dir', 'docs/no_toc'), metadata = list(sidebar = F, toc = F))" - + # Commit the TOC-less version files - name: Commit TOC-less Quarto files env: @@ -129,4 +128,3 @@ jobs: git commit -m 'Render toc-less' || echo "No changes to commit" git pull --allow-unrelated-histories --strategy-option=ours git push -u origin main || echo "No changes to push" -