Skip to content

Commit

Permalink
gadgets
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkEdmondson1234 committed Dec 6, 2019
1 parent 7f2bc11 commit 4186bce
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions R/buildsteps_templates.R
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,6 @@ cr_buildstep_pkgdown <- function(
pd <- system.file("cloudbuild/cloudbuild_pkgdown.yml",
package = "googleCloudRunner")


# In yaml.load: NAs introduced by coercion: . is not a real
pdb <- suppressWarnings(cr_build_make(pd))

Expand All @@ -321,11 +320,12 @@ cr_buildstep_pkgdown <- function(
cipher = cipher),
cr_buildstep_git(c("clone",repo, "repo")),
pkg_env,
cr_buildstep_git(c("add", "."), dir = "repo"),
cr_buildstep_git(c("add", "--all"), dir = "repo"),
cr_buildstep_git(c("commit", "-a", "-m",
"[skip travis] Build website from commit ${COMMIT_SHA}: \
$(date +\"%Y%m%dT%H:%M:%S\")"),
dir = "repo"),
cr_buildstep_git(c("status"), dir = "repo"),
cr_buildstep_git("push", repo, dir = "repo")
)

Expand Down
6 changes: 3 additions & 3 deletions R/rstudio_gadget.R
Original file line number Diff line number Diff line change
Expand Up @@ -52,17 +52,17 @@ cr_deploy_gadget <- function(){

## Your reactive logic goes here.
output$rSourceDyn <- shiny::renderUI({
shiny::req(input$rSourceDyn)
shiny::req(input$rSource)

ss <- input$rSourceDyn
ss <- input$rSource
if(ss == "None"){
return(NULL)
} else if(ss == "CloudRepository"){
return(
shiny::tagList(
shiny::textInput("source1", label = "repoName",
placeholder = "MarkEdmondson1234/googleCloudRunner"),
shiny::textInput("source2", label = "branchName",
shiny::textInput("source2", label = "branchName regex",
value = ".*")
)
)
Expand Down

0 comments on commit 4186bce

Please sign in to comment.