diff --git a/examples/github/easy-github-repository-create-new-branch/main.tf b/examples/github/easy-github-repository-create-new-branch/main.tf new file mode 100644 index 0000000..7c024d9 --- /dev/null +++ b/examples/github/easy-github-repository-create-new-branch/main.tf @@ -0,0 +1,6 @@ +# https://github.com/ssbostan/terraform-awesome + +resource "github_branch" "development" { + repository = var.github_repository + branch = "development" +} diff --git a/examples/github/easy-github-repository-create-new-branch/providers.tf b/examples/github/easy-github-repository-create-new-branch/providers.tf new file mode 100644 index 0000000..5546a06 --- /dev/null +++ b/examples/github/easy-github-repository-create-new-branch/providers.tf @@ -0,0 +1,5 @@ +# https://github.com/ssbostan/terraform-awesome + +provider "github" { + token = var.github_token +} diff --git a/examples/github/easy-github-repository-create-new-branch/terraform.tf b/examples/github/easy-github-repository-create-new-branch/terraform.tf new file mode 100644 index 0000000..3a6c304 --- /dev/null +++ b/examples/github/easy-github-repository-create-new-branch/terraform.tf @@ -0,0 +1,10 @@ +# https://github.com/ssbostan/terraform-awesome + +terraform { + required_providers { + github = { + source = "integrations/github" + version = "~> 4.0" + } + } +} diff --git a/examples/github/easy-github-repository-create-new-branch/variables.tf b/examples/github/easy-github-repository-create-new-branch/variables.tf new file mode 100644 index 0000000..e91af56 --- /dev/null +++ b/examples/github/easy-github-repository-create-new-branch/variables.tf @@ -0,0 +1,9 @@ +# https://github.com/ssbostan/terraform-awesome + +variable "github_token" { + type = string +} + +variable "github_repository" { + type = string # Your repository to add file +}