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
2 changes: 1 addition & 1 deletion .github/workflows/merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:

- name: Get specific changed files
id: image_name
uses: tj-actions/changed-files@v46.0.1
uses: tj-actions/changed-files@v46.0.3
with:
files: ${{ matrix.config.dir }}/*

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:

- name: Get specific changed files
id: image_name
uses: tj-actions/changed-files@vv46.0.1
uses: tj-actions/changed-files@v46.0.3
with:
files: ${{ matrix.config.dir }}/*

Expand Down
10 changes: 10 additions & 0 deletions ottrpal/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
FROM jhudsl/base_ottr:dev
LABEL maintainer="cansav09@gmail.com"

WORKDIR /app

COPY entrypoint.sh .

RUN chmod +x entrypoint.sh

ENTRYPOINT ["/app/entrypoint.sh"]
15 changes: 15 additions & 0 deletions ottrpal/entrypoint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/bin/sh

if [ "$1" = "rmd" ]; then
Rscript -e "bookdown::render_book('index.Rmd', output_format = 'all')"
elif [ "$1" = "quarto" ]; then
Rscript -e "quarto::quarto_render('.')"
elif [ "$1" = "spelling" ] || [ "$1" = "urls" ] || [ "$1" = "quiz_format" ]; then
Rscript -e "ottrpal::ottr_check(check_type = '$1')"
# Save output
echo "error_name=$error_name" >> $GITHUB_OUTPUT
echo "report_path=$report_path" >> $GITHUB_OUTPUT
echo "chk_results=$chk_results" >> $GITHUB_OUTPUT
else
echo Viable options are "render_rmd", "render_quarto", "spelling", "urls", "quiz_format"
fi