Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: carpentries-incubator/targets-workshop
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: main
Choose a base ref
...
head repository: swcarpentry-ja/targets-workshop
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: main
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 1 commit
  • 1 file changed
  • 1 contributor

Commits on Jan 28, 2025

  1. Render translated lesson

    joelnitta committed Jan 28, 2025
    Copy the full SHA
    737fd7c View commit details
Showing with 16 additions and 1 deletion.
  1. +16 −1 .github/workflows/sandpaper-main.yaml
17 changes: 16 additions & 1 deletion .github/workflows/sandpaper-main.yaml
Original file line number Diff line number Diff line change
@@ -5,6 +5,7 @@ on:
branches:
- main
- master
- l10n_main
schedule:
- cron: '0 0 * * 2'
workflow_dispatch:
@@ -36,6 +37,8 @@ jobs:

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

- name: "Set up R"
uses: r-lib/actions/setup-r@v2
@@ -56,9 +59,21 @@ 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)
sandpaper:::ci_deploy(reset = reset)
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)
shell: Rscript {0}