From 8b2f4f3dacf38c525ae86692f015e3fe47d64969 Mon Sep 17 00:00:00 2001 From: George Stagg Date: Fri, 15 Dec 2023 11:09:42 +0000 Subject: [PATCH] Fix `Config/needs/wasm` step in image workflow --- .github/workflows/release-file-system-image.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release-file-system-image.yml b/.github/workflows/release-file-system-image.yml index 04bd4fd..75d45d5 100644 --- a/.github/workflows/release-file-system-image.yml +++ b/.github/workflows/release-file-system-image.yml @@ -62,7 +62,8 @@ jobs: has_wasm_need <- file.exists("DESCRIPTION") && "Config/Needs/wasm" %in% names(as.list(read.dcf("DESCRIPTION")[1,])) - pkg <- if (has_wasm_need) "Config/Needs/wasm" else "" + pkg <- if (has_wasm_need) as.list(read.dcf("DESCRIPTION")[1,])$`Config/Needs/wasm` else "" + pkg <- paste0(strsplit(pkg, "[[:space:],]+")[[1]], collapse = ",") cat("pkg=", pkg, "\n", file = Sys.getenv("GITHUB_OUTPUT"), sep = "", append = TRUE) - name: Build wasm image