Skip to content

Commit

Permalink
[actions] update sandpaper workflow to version 0.16.11
Browse files Browse the repository at this point in the history
  • Loading branch information
joelnitta authored Jan 28, 2025
1 parent 908044d commit 60cf00f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 17 deletions.
17 changes: 1 addition & 16 deletions .github/workflows/sandpaper-main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ on:
branches:
- main
- master
- l10n_main
schedule:
- cron: '0 0 * * 2'
workflow_dispatch:
Expand Down Expand Up @@ -37,8 +36,6 @@ jobs:

- name: "Checkout Lesson"
uses: actions/checkout@v4
with:
ref: l10n_main

- name: "Set up R"
uses: r-lib/actions/setup-r@v2
Expand All @@ -59,21 +56,9 @@ jobs:
with:
cache-version: ${{ secrets.CACHE_VERSION }}

- name: Create and populate .Renviron file with LANG_CODE secret
run: |
echo "LANG_CODE=${{ secrets.LANG_CODE }}" >> ~/.Renviron
- name: "Deploy Site"
run: |
reset <- "${{ github.event.inputs.reset }}" == "true"
options(repos = c(carpentries = "https://carpentries.r-universe.dev/", CRAN = "https://cran.rstudio.com/"))
renv::install("carpentries/sandpaper")
renv::install("joelnitta/dovetail")
sandpaper::package_cache_trigger(TRUE)
lesson_trans_dir <- paste0(tempdir(), "/dovetail-", Sys.Date())
lang_code <- Sys.getenv("LANG_CODE", unset = "en")
dovetail:::make_translated_dir(
translated_dir = lesson_trans_dir, overwrite = TRUE, lang = lang_code,
l10n_branch = NULL, clean = FALSE)
sandpaper:::ci_deploy(path = lesson_trans_dir, reset = reset)
sandpaper:::ci_deploy(reset = reset)
shell: Rscript {0}
2 changes: 1 addition & 1 deletion .github/workflows/sandpaper-version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.16.9
0.16.11

0 comments on commit 60cf00f

Please sign in to comment.