Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .github/workflows/check-url.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,16 @@ jobs:
run: |
echo ${{ steps.check-report.outputs.error_url }}
echo ${{ steps.check-report.outputs.error_num }}

# Commit file
- name: Commit tocless bookdown files
if: ${{ steps.check-report.outputs.error_num >= 1 }}
env:
GH_PAT: ${{ secrets.GH_PAT }}
run: |
git add --force check_reports/url_checks.tsv
git commit -m 'Add spell check file' || echo "No changes to commit"
git push --set-upstream origin preview-spell-error || echo echo branch exists remotely

- name: Find issues
id: find-issue
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ jobs:
uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ secrets.GH_PAT }}

# Use the yaml-env-action action.
- name: Load environment from YAML
Expand Down
14 changes: 8 additions & 6 deletions .github/workflows/render-all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ on:
push:
branches: [ main, staging ]
paths:
- '**md$'
- '*.qmd'
- '*.Rmd'
- assets/*
- quizzes/*

Expand Down Expand Up @@ -101,7 +102,7 @@ jobs:
git add --force docs/*
git commit -m 'Render course' || echo "No changes to commit"
git status docs/*
git push -u origin main || echo "No changes to push"
git push --force -u origin main || echo "No changes to push"

render-tocless:
name: Render TOC-less version for Leanpub or Coursera
Expand Down Expand Up @@ -149,7 +150,7 @@ jobs:
git add --force docs/no_toc*
git commit -m 'Render toc-less' || echo "No changes to commit"
git status docs/no_toc*
git push -u origin main || echo "No changes to push"
git push --force -u origin main || echo "No changes to push"

render-leanpub:
name: Finish Leanpub prep
Expand Down Expand Up @@ -188,6 +189,7 @@ jobs:
--git_pat ${{ secrets.GH_PAT }} \
--repo $GITHUB_REPOSITORY \
--output_dir resources/chapt_screen_images)
rm make_screenshots.R

# We want a fresh run of the renders each time
- name: Delete manuscript/
Expand All @@ -200,7 +202,7 @@ jobs:
git push -u origin main || echo "No changes to push"

- name: Run ottrpal::bookdown_to_embed_leanpub
if: needs.yaml-check.outputs.toggle_quiz_check == 'no'
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
Expand All @@ -211,7 +213,7 @@ jobs:
quiz_dir = NULL)"

- name: Run ottrpal::bookdown_to_embed_leanpub
if: needs.yaml-check.outputs.toggle_quiz_check == 'yes'
if: ${{ needs.yaml-check.outputs.toggle_quiz_check == 'yes'}}
run: |
Rscript -e "ottrpal::bookdown_to_embed_leanpub(
render = FALSE, \
Expand Down Expand Up @@ -276,4 +278,4 @@ jobs:
git add --force docs/*
git commit -m 'Render Coursera quizzes' || echo "No changes to commit"
git status
git push -u origin main || echo "No changes to push"
git push --force -u origin main || echo "No changes to push"
5 changes: 3 additions & 2 deletions config_automation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,10 @@ spell-check: yes
style-code: yes
# Test build the docker image if any docker-relevant files have been changed
docker-test: no
# Do we need to make the book txt file automatically?
# Do we need to make the book txt file automatically?
make_book_txt: yes
# Should URLs be tested periodically?
url-check-periodically: yes

##### Renderings run upon merge to main branch #####
# Rendering each platform's content
Expand All @@ -24,4 +26,3 @@ render-coursera: no
# What docker image should be used for rendering?
# The default is jhudsl/base_ottr:latest
rendering_docker_image: 'jhudsl/ottr_jupyter:latest'

8 changes: 8 additions & 0 deletions resources/exclude_files.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
About.Rmd
docs/*
style-sets/*
manuscript/*
CONTRIBUTING.md
LICENSE.md
code_of_conduct.md
README.md
Loading