Skip to content

Commit

Permalink
fix sha env var
Browse files Browse the repository at this point in the history
  • Loading branch information
maxheld83 committed Aug 16, 2020
1 parent 1419966 commit ef28c91
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions R/helpers.R
Original file line number Diff line number Diff line change
@@ -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.
#'
Expand All @@ -10,7 +10,7 @@
#'
#' @keywords internal
get_tag <- function() {
sha <- Sys.getenv("gihub.sha")
sha <- Sys.getenv("GITHUB_SHA")
if (sha == "") {
tag <- "latest"
} else {
Expand Down
2 changes: 1 addition & 1 deletion man/get_tag.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit ef28c91

Please sign in to comment.