Skip to content

Commit

Permalink
Merge pull request #2 from devil-mice-labs/oliver-updates
Browse files Browse the repository at this point in the history
Add trigger_patterns and project_id
  • Loading branch information
olliefr authored May 16, 2023
2 parents 6fec012 + 961eda2 commit 498ae6a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
5 changes: 5 additions & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@ resource "tfe_workspace" "workspace" {
speculative_enabled = var.speculative_enabled
tag_names = var.tag_names

trigger_patterns = [
"${each.value}/*",
"modules/**/*",
]

vcs_repo {
identifier = local.vcs_identifier
github_app_installation_id = var.github_app_installation_id
Expand Down
6 changes: 6 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -114,3 +114,9 @@ variable "TFC_WORKSPACE_NAME" {
type = string
default = null
}

variable "project_id" {
description = "ID of the project where the workspace should be created."
type = string
default = null
}

0 comments on commit 498ae6a

Please sign in to comment.