Skip to content

Commit

Permalink
remove github release part at end of release script
Browse files Browse the repository at this point in the history
  • Loading branch information
zkamvar committed Dec 12, 2023
1 parent a8c4a31 commit dbd736c
Showing 1 changed file with 15 additions and 12 deletions.
27 changes: 15 additions & 12 deletions final-transition.R
Original file line number Diff line number Diff line change
Expand Up @@ -111,16 +111,19 @@ withr::with_dir(new, {

refs <- gert::git_remote_ls(repo = old)
gert::git_remote_set_url(origin, remote = "origin", repo = new)
prepare_for_execution <- function(cmd) {
cli::cli_alert("preparing to run {.code {cmd}} in")
for (step in 5:1) {
Sys.sleep(1)
cli::cli_alert("{step}...")
}
}
cmd <- glue::glue("setup_github(path = '{new}', owner = '{org_repo[1]}', repo = '{org_repo[2]}')")
prepare_for_execution(cmd)
cli::cli_alert("Done. You are now ready to release to GitHub")

# prepare_for_execution <- function(cmd) {
# cli::cli_alert("preparing to run {.code {cmd}} in")
# for (step in 5:1) {
# Sys.sleep(1)
# cli::cli_alert("{step}...")
# }
# }

# cmd <- glue::glue("setup_github(path = '{new}', owner = '{org_repo[1]}', repo = '{org_repo[2]}')")
# prepare_for_execution(cmd)

tkn <- Sys.getenv("RELEASE_PAT", unset = "")
tkn <- if (tkn == "") NULL else tkn
setup_github(path = new, owner = org_repo[1], repo = org_repo[2], .token = tkn)
# tkn <- Sys.getenv("RELEASE_PAT", unset = "")
# tkn <- if (tkn == "") NULL else tkn
# setup_github(path = new, owner = org_repo[1], repo = org_repo[2], .token = tkn)

0 comments on commit dbd736c

Please sign in to comment.