diff --git a/R/helpers.R b/R/helpers.R index f53c878..b701be8 100644 --- a/R/helpers.R +++ b/R/helpers.R @@ -1,6 +1,6 @@ #' Use `github.sha` environment variable or `"latest"` as docker image tag #' -#' Retrieves the current git commit SHA from the [`github.sha`](https://docs.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions) environment variable set on GitHub Actions. +#' Retrieves the current git commit SHA from the [`GITHUB_SHA`](https://docs.github.com/en/actions/configuring-and-managing-workflows/using-environment-variables) environment variable set on GitHub Actions. #' Returns `latest`, if the environment variable is an empty string. #' Internal function used to retrieve the appropriate docker image tag for a shiny app. #' @@ -10,7 +10,7 @@ #' #' @keywords internal get_tag <- function() { - sha <- Sys.getenv("gihub.sha") + sha <- Sys.getenv("GITHUB_SHA") if (sha == "") { tag <- "latest" } else { diff --git a/man/get_tag.Rd b/man/get_tag.Rd index c0e35ab..d88237b 100644 --- a/man/get_tag.Rd +++ b/man/get_tag.Rd @@ -10,7 +10,7 @@ get_tag() character string } \description{ -Retrieves the current git commit SHA from the \href{https://docs.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions}{\code{github.sha}} environment variable set on GitHub Actions. +Retrieves the current git commit SHA from the \href{https://docs.github.com/en/actions/configuring-and-managing-workflows/using-environment-variables}{\code{GITHUB_SHA}} environment variable set on GitHub Actions. Returns \code{latest}, if the environment variable is an empty string. Internal function used to retrieve the appropriate docker image tag for a shiny app. }