Set an actions output parameter. These can be accessed in later steps.

octo_set_output(value, name)

Arguments

value

A single line string (or coercible to character). Use encode_string() to encode a numeric or multiline string.

name

A character vector length 1.

See also

Examples

Sys.setenv(GITHUB_ACTION = "true")
string <- "A multi-line \n String."
value <- encode_string(string)
#> Error in encode_string(string): could not find function "encode_string"
octo_set_output("important-value", value)
#> NULL