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

import * as pulumi from "@pulumi/pulumi";
import * as github from "@pulumi/github";
const exampleVariable = new github.ActionsVariable("example_variable", {
repository: "example_repository",
variableName: "example_variable_name",
value: "example_variable_value",
});
import pulumi
import pulumi_github as github
example_variable = github.ActionsVariable("example_variable",
repository="example_repository",
variable_name="example_variable_name",
value="example_variable_value")
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Github = Pulumi.Github;
return await Deployment.RunAsync(() =>
{
var exampleVariable = new Github.ActionsVariable("example_variable", new()
{
Repository = "example_repository",
VariableName = "example_variable_name",
Value = "example_variable_value",
});
});
package main
import (
"github.com/pulumi/pulumi-github/sdk/v6/go/github"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := github.NewActionsVariable(ctx, "example_variable", &github.ActionsVariableArgs{
Repository: pulumi.String("example_repository"),
VariableName: pulumi.String("example_variable_name"),
Value: pulumi.String("example_variable_value"),
})
if err != nil {
return err
}
return nil
})
}
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")
.variableName("example_variable_name")
.value("example_variable_value")
.build());
}
}
resources:
exampleVariable:
type: github:ActionsVariable
name: example_variable
properties:
repository: example_repository
variableName: example_variable_name
value: example_variable_value

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