ActionsVariable

class ActionsVariable : KotlinCustomResource

This resource allows you to create and manage GitHub Actions variables within your GitHub repositories. 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.ActionsVariable;
import com.pulumi.github.ActionsVariableArgs;
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 ActionsVariable("exampleVariable", ActionsVariableArgs.builder()
.repository("example_repository")
.value("example_variable_value")
.variableName("example_variable_name")
.build());
}
}

Import

GitHub Actions variables can be imported using an ID made up of repository:variable_name, e.g.

$ pulumi import github:index/actionsVariable:ActionsVariable myvariable myrepo:myvariable

Properties

Link copied to clipboard
val createdAt: Output<String>

Date of actions_variable creation.

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_variable 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