Skip to content

Commit

Permalink
Provide pointer to GHA docs (r-lib#1351)
Browse files Browse the repository at this point in the history
  • Loading branch information
hadley authored Feb 6, 2021
1 parent d2cf967 commit e7f2c0b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions R/github-actions.R
Original file line number Diff line number Diff line change
Expand Up @@ -143,8 +143,10 @@ use_github_action <- function(name,
url <- glue(
"https://raw.githubusercontent.com/r-lib/actions/master/examples/{name}"
)
readme <- "https://github.com/r-lib/actions/blob/master/examples/README.md"
} else {
stopifnot(is_string(url))
readme <- NULL
}

if (is.null(save_as)) {
Expand All @@ -163,6 +165,9 @@ use_github_action <- function(name,
if (open && new) {
edit_file(proj_path(save_as))
}
if (!is.null(readme)) {
ui_todo("Learn more at <{readme}>")
}

invisible(new)
}
Expand Down

0 comments on commit e7f2c0b

Please sign in to comment.