octo_set_output: Set an output parameter

View source: R/commands.R

octo_set_outputR Documentation

Set an output parameter

Description

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

Usage

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

GitHub Docs

Examples

Sys.setenv(GITHUB_ACTION = "true")
string <- "A multi-line \n String."
value <- encode_string(string)
octo_set_output("important-value", value)

assignUser/octolog documentation built on June 4, 2023, 3:28 p.m.