ActionsEnvironmentVariable

class ActionsEnvironmentVariable : KotlinCustomResource

This resource allows you to create and manage GitHub Actions variables within your GitHub repository environments. You must have write access to a repository to use this resource.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.github.ActionsEnvironmentVariable;
import com.pulumi.github.ActionsEnvironmentVariableArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var exampleVariable = new ActionsEnvironmentVariable("exampleVariable", ActionsEnvironmentVariableArgs.builder()
.environment("example_environment")
.value("example_variable_value")
.variableName("example_variable_name")
.build());
}
}

Import

This resource can be imported using an ID made up of the repository name, environment name, and variable name:

$ pulumi import github:index/actionsEnvironmentVariable:ActionsEnvironmentVariable test_variable myrepo:myenv:myvariable

Properties

Link copied to clipboard
val createdAt: Output<String>

Date of actions_environment_secret creation.

Link copied to clipboard
val environment: Output<String>

Name of the environment.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val repository: Output<String>

Name of the repository.

Link copied to clipboard
val updatedAt: Output<String>

Date of actions_environment_secret update.

Link copied to clipboard
val urn: Output<String>
Link copied to clipboard
val value: Output<String>

Value of the variable

Link copied to clipboard
val variableName: Output<String>

Name of the variable.