Skip to content

Latest commit

 

History

History
96 lines (72 loc) · 1.4 KB

github_branch.md

File metadata and controls

96 lines (72 loc) · 1.4 KB

github_branch

back

Index

Terraform

terraform {
  required_providers {
    github = ">= 4.6.0"
  }
}

top

Example Usage

module "github_branch" {
  source = "./modules/github/d/github_branch"

  # branch - (required) is a type of string
  branch = null
  # repository - (required) is a type of string
  repository = null
}

top

Variables

variable "branch" {
  description = "(required)"
  type        = string
}

variable "repository" {
  description = "(required)"
  type        = string
}

top

Datasource

data "github_branch" "this" {
  # branch - (required) is a type of string
  branch = var.branch
  # repository - (required) is a type of string
  repository = var.repository
}

top

Outputs

output "etag" {
  description = "returns a string"
  value       = data.github_branch.this.etag
}

output "id" {
  description = "returns a string"
  value       = data.github_branch.this.id
}

output "ref" {
  description = "returns a string"
  value       = data.github_branch.this.ref
}

output "sha" {
  description = "returns a string"
  value       = data.github_branch.this.sha
}

output "this" {
  value = github_branch.this
}

top