Skip to content

Commit

Permalink
Merge pull request #70 from schubergphilis/fvb/tag_protection
Browse files Browse the repository at this point in the history
fix: Fix tag protection refactor
  • Loading branch information
fatbasstard authored Sep 4, 2024
2 parents ebb4d9b + 93bbb12 commit c2ffffb
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -129,15 +129,17 @@ resource "github_repository_ruleset" "default" {
bypass_mode = "always"
}

conditions {
ref_name {
exclude = []
include = ["refs/tags/${var.tag_protection}"]
}
}

rules {
creation = true
update = true
deletion = true

tag_name_pattern {
operator = "regex"
pattern = var.tag_protection
}
}
}

Expand Down

0 comments on commit c2ffffb

Please sign in to comment.