Skip to content

Commit

Permalink
Merge pull request #22 from fhdsl/cansavvy-patch-1
Browse files Browse the repository at this point in the history
Fix logic for make_book_txt
  • Loading branch information
cansavvy authored Jun 26, 2024
2 parents cbc1db7 + 658e134 commit bb68802
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/render-all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -202,10 +202,12 @@ jobs:
- name: Run ottrpal::bookdown_to_embed_leanpub
if: needs.yaml-check.outputs.toggle_quiz_check == 'no'
run: |
echo needs.yaml-check.outputs.toggle_make_book_txt == 'yes'
echo needs.yaml-check.outputs.toggle_make_book_txt
Rscript -e "ottrpal::bookdown_to_embed_leanpub(
render = FALSE, \
chapt_img_key = 'resources/chapt_screen_images/chapter_urls.tsv', \
make_book_txt = as.logical('${{needs.yaml-check.outputs.toggle_leanpub == 'yes'}}'), \
make_book_txt = as.logical('${{needs.yaml-check.outputs.toggle_make_book_txt == 'yes'}}'), \
quiz_dir = NULL)"
- name: Run ottrpal::bookdown_to_embed_leanpub
Expand All @@ -214,7 +216,7 @@ jobs:
Rscript -e "ottrpal::bookdown_to_embed_leanpub(
render = FALSE, \
chapt_img_key = 'resources/chapt_screen_images/chapter_urls.tsv', \
make_book_txt = as.logical('${{needs.yaml-check.outputs.toggle_leanpub == 'yes'}}'))"
make_book_txt = as.logical('${{needs.yaml-check.outputs.toggle_make_book_txt == 'yes'}}'))"
# Commit the rendered Leanpub files
- name: Commit rendered Leanpub files
Expand Down

0 comments on commit bb68802

Please sign in to comment.