Skip to content

Commit

Permalink
feat: Add release CI context
Browse files Browse the repository at this point in the history
  • Loading branch information
gnarea committed Dec 20, 2021
1 parent 6cf5780 commit aaf9a9f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ resource "github_branch_protection" "main" {
required_status_checks {
strict = true
contexts = concat(
var.require_semantic_releases ? ["pr-ci / semantic-pr-title"] : [],
var.support_releases ? ["pr-ci / semantic-pr-title", "release / release"] : [],
var.ci_contexts,
["license/cla"]
)
Expand Down
2 changes: 1 addition & 1 deletion variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ variable "ci_contexts" {
description = "Required CI contexts for PRs to merged in the main branch"
}

variable "require_semantic_releases" {
variable "support_releases" {
default = true
description = "Whether the project uses Semantic Releases"
}
Expand Down

0 comments on commit aaf9a9f

Please sign in to comment.