Output Values
Mint tasks can output values which other tasks can use.
Write your output values to the $MINT_VALUES
directory, using the desired key as the filename.
For example, to set the value for the key some-key
, you'd write to $MINT_VALUES/some-key
.
Example
tasks:
- key: task1
run: echo value1 > $MINT_VALUES/key1
- key: task2
run: echo ${{ tasks.task1.values.key1 }}
If a file under $MINT_VALUES
has a single trailing newline character
(\n
), Mint will trim that newline character from the value.
A value with multiple trailing newlines, or a trailing \r\n
, will not
be trimmed.
Files in subdirectories under $MINT_VALUES
are not considered for a task's
output values.