TaskConfig
Index
Properties
args
Arguments to pass to the command when it's ran. Can be defined as a string, or a list of individual arguments.
command
The command or command line to execute when the task is ran. Supports the command name, with or without arguments. Can be defined as a string, or a list of individual arguments.
deps
Other tasks that this task depends on, and must run to completion before this task is ran. Can depend on sibling tasks, or tasks in other projects, using targets.
description
A human-readable description about the task.
env
A mapping of environment variables that will be set when the task is ran.
extends
Extends settings from a sibling task by ID.
inputs
Inputs and sources that will mark the task as affected when comparing against touched files. When not provided, all files within the project are considered an input. When an empty list, no files are considered. Otherwise, an explicit list of inputs are considered.
local
Marks the task as local only. Local tasks do not run in CI, do not have
options.cache
enabled, and are marked as options.persistent
.
options
Options to control task inheritance and execution.
outputs
Outputs that will be created when the task has successfully ran.
When cache
is enabled, the outputs will be persisted for subsequent runs.
platform
The platform in which the task will be ran in. The platform determines available binaries, lookup paths, and more. When not provided, will be automatically detected.
preset
The preset to apply for the task. Will inherit default options.
script
A script to run within a shell. A script is anything from a single command, to multiple commands (&&, etc), or shell specific syntax. Does not support arguments, merging, or inheritance.
type
The type of task, primarily used for categorical reasons. When not provided, will be automatically determined.
Configures a task to be ran within the action pipeline.