io: Reading and writing GitHub Actions workflow files

Description Usage Arguments Details Value Functions

Description

Reading and writing GitHub Actions workflow files

Usage

1
2
3
4
5
6
7
write_workflow(x, file = stdout(), ...)

r2yaml(x)

read_workflows(path = ".github/workflows")

read_workflow(file, ...)

Arguments

x

[list()] as created by the workflow functions.

file

either a character string naming a file or a connection open for writing

...

arguments to as.yaml

path

[character()] giving the directory from the repository root where to find GitHub Actions workflows. Defaults to ".github/workflows".

Details

It is not necessary to escape characters with special meaning in yaml; the underlying yaml::write_yaml() does this automatically.

If a workflow is not name:d, the file name will be used as a name: , as per the GitHub Actions documentation.

Value

[list()] of lists from yaml.

Functions


r-lib/ghactions documentation built on Dec. 15, 2020, 4:07 p.m.