Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
walkowif committed Jun 24, 2024
1 parent 81b8157 commit 478393c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
13 changes: 10 additions & 3 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,16 @@ runs:
echo "❌ Quarto CLI version insufficient (< ${MIN_QUARTO_VERSION})"
apt-get update
apt-get install -qy wget jq
export QUARTO_VERSION="1.5.47"
echo "Downloading and installing Quarto CLI version ${QUARTO_VERSION}"
wget -q https://github.com/quarto-dev/quarto-cli/releases/download/v${QUARTO_VERSION}/quarto-${QUARTO_VERSION}-linux-amd64.deb
# Install newer version of Quarto CLI.
# This gets the latest version number (v1.5 up to v1.9) of Quarto from GitHub releases.
# It assumes that such version number (v1.5 up to v1.9) exists within the last 100 released Quarto versions.
export QUARTO_VERSION="$(curl -L -H "Accept: application/vnd.github+json" \
-H "X-GitHub-Api-Version: 2022-11-28" \
https://api.github.com/repos/quarto-dev/quarto-cli/releases?per_page=100 \
2>/dev/null | \
jq -r 'map(select(.tag_name | test("^v1.[5-9]"))) | .[0].name[1:]')"
echo "Downloading and installing latest Quarto CLI version ${QUARTO_VERSION}"
wget https://github.com/quarto-dev/quarto-cli/releases/download/v${QUARTO_VERSION}/quarto-${QUARTO_VERSION}-linux-amd64.deb
dpkg -i quarto-${QUARTO_VERSION}-linux-amd64.deb
echo "New Quarto CLI version: $(quarto --version)"
fi
Expand Down
2 changes: 1 addition & 1 deletion report-generator.R
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,4 @@ if (!disable_install_dev_deps) {

library(quarto)
cat(paste0("Running Quarto render for template: ", template_path))
quarto_render(template_path, output_file = "validation_report.pdf", debug = TRUE)
quarto_render(template_path, output_file = "validation_report.pdf")

0 comments on commit 478393c

Please sign in to comment.