on: Create nested list for an on: field

Description Usage Arguments Details Functions See Also Examples

View source: R/syntax.R

Description

Create nested list for an on: field

Usage

1
2
3
4
5
6
7
on(event, ...)

on_push(tags = NULL, branches = NULL, paths = NULL)

on_pull_request(tags = NULL, branches = NULL, paths = NULL)

on_schedule(cron = NULL)

Arguments

event

[character(1)] giving the event on which to filter. Must be one of c("push", "pull_request", "schedule").

...

[character()] giving the filters on which to run. Must correspond to the filters allowed by event.

tags, branches, paths

[character()] giving the tags, branches or modified paths on which to run the workflow. Defaults to NULL for no additional filters.

cron

[character(1)] giving UTC times using POSIX cron syntax.

Details

See the GitHub Actions workflow syntax for details.

Functions

See Also

Other syntax: container(), gh_matrix(), ghactions_events, ghactions_vms, job(), step(), strategy(), workflow()

Examples

1
2
3
4
on(
  event = "push",
  branches = c("master", "releases/*")
)

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