github.getActionsVariables

Use this data source to retrieve the list of variables for a GitHub repository.

Example Usage

using System.Collections.Generic;
using Pulumi;
using Github = Pulumi.Github;

return await Deployment.RunAsync(() => 
{
    var example = Github.GetActionsVariables.Invoke(new()
    {
        Name = "example",
    });

});
package main

import (
	"github.com/pulumi/pulumi-github/sdk/v5/go/github"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := github.GetActionsVariables(ctx, &github.GetActionsVariablesArgs{
			Name: pulumi.StringRef("example"),
		}, nil)
		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.GithubFunctions;
import com.pulumi.github.inputs.GetActionsVariablesArgs;
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) {
        final var example = GithubFunctions.getActionsVariables(GetActionsVariablesArgs.builder()
            .name("example")
            .build());

    }
}
import pulumi
import pulumi_github as github

example = github.get_actions_variables(name="example")
import * as pulumi from "@pulumi/pulumi";
import * as github from "@pulumi/github";

const example = github.getActionsVariables({
    name: "example",
});
variables:
  example:
    fn::invoke:
      Function: github:getActionsVariables
      Arguments:
        name: example

Using getActionsVariables

Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

function getActionsVariables(args: GetActionsVariablesArgs, opts?: InvokeOptions): Promise<GetActionsVariablesResult>
function getActionsVariablesOutput(args: GetActionsVariablesOutputArgs, opts?: InvokeOptions): Output<GetActionsVariablesResult>
def get_actions_variables(full_name: Optional[str] = None,
                          name: Optional[str] = None,
                          opts: Optional[InvokeOptions] = None) -> GetActionsVariablesResult
def get_actions_variables_output(full_name: Optional[pulumi.Input[str]] = None,
                          name: Optional[pulumi.Input[str]] = None,
                          opts: Optional[InvokeOptions] = None) -> Output[GetActionsVariablesResult]
func GetActionsVariables(ctx *Context, args *GetActionsVariablesArgs, opts ...InvokeOption) (*GetActionsVariablesResult, error)
func GetActionsVariablesOutput(ctx *Context, args *GetActionsVariablesOutputArgs, opts ...InvokeOption) GetActionsVariablesResultOutput

> Note: This function is named GetActionsVariables in the Go SDK.

public static class GetActionsVariables 
{
    public static Task<GetActionsVariablesResult> InvokeAsync(GetActionsVariablesArgs args, InvokeOptions? opts = null)
    public static Output<GetActionsVariablesResult> Invoke(GetActionsVariablesInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetActionsVariablesResult> getActionsVariables(GetActionsVariablesArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
  function: github:index/getActionsVariables:getActionsVariables
  arguments:
    # arguments dictionary

The following arguments are supported:

FullName string

Full name of the repository (in org/name format).

Name string

The name of the repository.

FullName string

Full name of the repository (in org/name format).

Name string

The name of the repository.

fullName String

Full name of the repository (in org/name format).

name String

The name of the repository.

fullName string

Full name of the repository (in org/name format).

name string

The name of the repository.

full_name str

Full name of the repository (in org/name format).

name str

The name of the repository.

fullName String

Full name of the repository (in org/name format).

name String

The name of the repository.

getActionsVariables Result

The following output properties are available:

FullName string
Id string

The provider-assigned unique ID for this managed resource.

Name string

Name of the variable

Variables List<GetActionsVariablesVariable>

list of variables for the repository

FullName string
Id string

The provider-assigned unique ID for this managed resource.

Name string

Name of the variable

Variables []GetActionsVariablesVariable

list of variables for the repository

fullName String
id String

The provider-assigned unique ID for this managed resource.

name String

Name of the variable

variables List<GetActionsVariablesVariable>

list of variables for the repository

fullName string
id string

The provider-assigned unique ID for this managed resource.

name string

Name of the variable

variables GetActionsVariablesVariable[]

list of variables for the repository

full_name str
id str

The provider-assigned unique ID for this managed resource.

name str

Name of the variable

variables Sequence[GetActionsVariablesVariable]

list of variables for the repository

fullName String
id String

The provider-assigned unique ID for this managed resource.

name String

Name of the variable

variables List<Property Map>

list of variables for the repository

Supporting Types

GetActionsVariablesVariable

CreatedAt string

Timestamp of the variable creation

Name string

The name of the repository.

UpdatedAt string

Timestamp of the variable last update

Value string

Value of the variable

CreatedAt string

Timestamp of the variable creation

Name string

The name of the repository.

UpdatedAt string

Timestamp of the variable last update

Value string

Value of the variable

createdAt String

Timestamp of the variable creation

name String

The name of the repository.

updatedAt String

Timestamp of the variable last update

value String

Value of the variable

createdAt string

Timestamp of the variable creation

name string

The name of the repository.

updatedAt string

Timestamp of the variable last update

value string

Value of the variable

created_at str

Timestamp of the variable creation

name str

The name of the repository.

updated_at str

Timestamp of the variable last update

value str

Value of the variable

createdAt String

Timestamp of the variable creation

name String

The name of the repository.

updatedAt String

Timestamp of the variable last update

value String

Value of the variable

Package Details

Repository
GitHub pulumi/pulumi-github
License
Apache-2.0
Notes

This Pulumi package is based on the github Terraform Provider.