Skip to content

Commit

Permalink
fix: generate version replace with bumpversion (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
luismayta committed Feb 13, 2024
1 parent 8e09f3f commit a4d6f65
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 14 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ This is a list of plugins that need to be installed previously to enjoy all the
```hcl
module "main" {
source = "hadenlabs/secrets/github"
version = "0.1.1
version = "0.1.1"
providers = {
github = github
Expand Down Expand Up @@ -64,7 +64,7 @@ Full working examples can be found in [examples](./examples) folder.
```hcl
module "main" {
source = "hadenlabs/secrets/github"
version = "0.1.1
version = "0.1.1"
providers = {
github = github
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/common.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
```hcl
module "main" {
source = "hadenlabs/secrets/github"
version = "0.1.1
version = "0.1.1"
providers = {
github = github
Expand Down
2 changes: 1 addition & 1 deletion docs/usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
```hcl
module "main" {
source = "hadenlabs/secrets/github"
version = "0.1.1
version = "0.1.1"
providers = {
github = github
Expand Down
12 changes: 4 additions & 8 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -130,17 +130,13 @@ omit = ["tests/*"]
search = '{current_version}'
replace = '{new_version}'

[tool.poetry_bumpversion.file."provision/generators/README.yaml"]
search = '{current_version}'
replace = '{new_version}'

[tool.poetry_bumpversion.file."docs/examples/common.md"]
search = '{current_version}'
replace = '{new_version}'
search = 'version = "{current_version}"'
replace = 'version = "{new_version}"'

[tool.poetry_bumpversion.file."docs/usage.md"]
search = '{current_version}'
replace = '{new_version}'
search = 'version = "{current_version}"'
replace = 'version = "{new_version}"'

[tool.poetry_bumpversion.file."sonar-project.properties"]
search = 'sonar.projectVersion={current_version}'
Expand Down
4 changes: 2 additions & 2 deletions sonar-project.properties
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
sonar.organization=hadenlabs
sonar.projectKey=hadenlabs:terraform-github-secrets
sonar.projectName=terraform-github-secrets
sonar.projectVersion=0.0.0
sonar.projectVersion=0.1.1
sonar.projectBaseDir=./
sonar.sources=./
sonar.coverage.dtdVerification=false
sonar.coverage.exclusions=provision
sonar.sourceEncoving=UTF-8
sonar.sourceEncoving=UTF-8

0 comments on commit a4d6f65

Please sign in to comment.