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.
resource "github_actions_variable" "example_variable" {
repository = "example_repository"
variable_name = "example_variable_name"
value = "example_variable_value"
}
The following arguments are supported:
repository
- (Required) Name of the repositoryvariable_name
- (Required) Name of the variablevalue
- (Required) Value of the variablecreated_at
- Date of actions_variable creation.updated_at
- Date of actions_variable update.GitHub Actions variables can be imported using an ID made up of repository:variable_name
, e.g.
$ terraform import github_actions_variable.myvariable myrepo:myvariable