8888
8989 render-tocless :
9090 name : Render TOC-less version for Leanpub or Coursera
91- needs : [yaml-check]
91+ needs : [yaml-check, render-bookdown ]
9292 runs-on : ubuntu-latest
9393 container :
9494 image : ${{needs.yaml-check.outputs.rendering_docker_image}}
@@ -122,7 +122,7 @@ jobs:
122122 git fetch origin
123123 git add --force docs/no_toc*
124124 git commit -m 'Render toc-less' || echo "No changes to commit"
125- git pull --allow-unrelated-histories --strategy-option=ours
125+ git pull --set-upstream origin $branch_name -- allow-unrelated-histories --strategy-option=ours
126126 git push -u origin main || echo "No changes to push"
127127
128128 render-leanpub :
@@ -169,11 +169,11 @@ jobs:
169169 git fetch origin
170170 git add .
171171 git commit -m 'Delete manuscript folder' || echo "No changes to commit"
172- git pull --allow-unrelated-histories --strategy-option=ours
172+ git pull --set-upstream origin $branch_name -- allow-unrelated-histories --strategy-option=ours
173173 git push -u origin main || echo "No changes to push"
174174
175175 - name : Run ottrpal::bookdown_to_embed_leanpub
176- if : needs.yaml-check.outputs.toggle_quiz_check == 'no'
176+ if : ${{ needs.yaml-check.outputs.toggle_quiz_check == 'no'}}
177177 run : |
178178 Rscript -e "ottrpal::bookdown_to_embed_leanpub(
179179 render = FALSE, \
@@ -182,7 +182,7 @@ jobs:
182182 quiz_dir = NULL)"
183183
184184 - name : Run ottrpal::bookdown_to_embed_leanpub
185- if : needs.yaml-check.outputs.toggle_quiz_check == 'yes'
185+ if : ${{ needs.yaml-check.outputs.toggle_quiz_check == 'yes'}}
186186 run : |
187187 Rscript -e "ottrpal::bookdown_to_embed_leanpub(
188188 render = FALSE, \
@@ -244,5 +244,5 @@ jobs:
244244 git add --force resources/*
245245 git add --force docs/*
246246 git commit -m 'Render Coursera quizzes' || echo "No changes to commit"
247- git pull --allow-unrelated-histories --strategy-option=ours
247+ git pull --rebase -- allow-unrelated-histories --strategy-option=ours
248248 git push -u origin main || echo "No changes to push"
0 commit comments