Skip to content

Make it possible to render software repository pages on GitHub Actions #66

@HenrikBengtsson

Description

@HenrikBengtsson

Issue

Currently, the page generation of module repositories is done "live", i.e. the script calls spider ... when it renders the page;

lmod_dir <- file.path(Sys.getenv("LMOD_DIR"))
stopifnot(nzchar(lmod_dir))
spider <- file.path(lmod_dir, "spider")
message(" - spider binary: ", sQuote(spider))
stopifnot(utils::file_test("-x", spider))
args <- c("--no_recursion", "-o jsonSoftwarePage", module_path)
message(" - spider arguments: ", paste(args, collapse = " "))
json <- system2(spider, args = args, stdout = TRUE)

This prevents us from rendering the page outside of the cluster, e.g. on a local notebook or on GitHub Pages.

Suggestions

To fix this, we can:

  1. Dump spider ... output to file, e.g. via a cronjob and commit to the repo
  2. Have the page rendering script read spider data from this file

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions