Package io.typeflows.github.workflow
Class Settings
-
- All Implemented Interfaces:
-
io.typeflows.util.Renderable
public final class Settings implements Renderable<Map<String, Any>>
Represents a collection of key-value settings for GitHub Actions workflows.
Settings provide a flexible way to manage environment variables and configuration parameters that can be used throughout workflows, jobs, and steps. They support both string values and expressions, enabling dynamic configuration management.
-
-
Constructor Summary
Constructors Constructor Description Settings()
-
Method Summary
Modifier and Type Method Description final BooleanisNotEmpty()final UnitplusAssign(Map<String, String> other)final UnitplusAssign(Pair<String, String> other)final UnitplusAssign(Settings other)final Unitset(String key, String value)final Unitset(String key, Expression value)final Unitput(String key, String value)final Unitput(String key, Expression value)Map<String, Object>render()-
-
Method Detail
-
isNotEmpty
final Boolean isNotEmpty()
-
plusAssign
final Unit plusAssign(Map<String, String> other)
-
plusAssign
final Unit plusAssign(Pair<String, String> other)
-
plusAssign
final Unit plusAssign(Settings other)
-
set
final Unit set(String key, Expression value)
-
put
final Unit put(String key, Expression value)
-
-
-
-