Skip to content

Commit

Permalink
Provider version fix
Browse files Browse the repository at this point in the history
  • Loading branch information
bczoma committed Mar 22, 2024
1 parent 61edcaf commit b85e7cf
Show file tree
Hide file tree
Showing 9 changed files with 11 additions and 4 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/module-test-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,11 @@ jobs:
- name: Ensure version reflects release candidate version
run: |
VERSION=$(echo "${GITHUB_REF_NAME}" | cut -d'v' -f2)
echo $VERSION > VERSION
# only if ${GITHUB_REF_NAME} starts with 'v' or 'dev' and followed by a semver
if [[ $GITHUB_REF_NAME =~ ^(v|dev)[0-9]+\.[0-9]+\.[0-9]+.*$ ]]; then
VERSION=$(echo "${GITHUB_REF_NAME}" | cut -d'v' -f2)
echo $VERSION > VERSION
fi
- name: Check changed files
uses: tj-actions/verify-changed-files@v17
Expand Down
1 change: 1 addition & 0 deletions ci/module-test/providers.tf
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ terraform {
required_providers {
solacebroker = {
source = "registry.terraform.io/solaceproducts/solacebroker"
version = "~> 0.9"
}
}
required_version = "~> 1.2"
Expand Down
1 change: 1 addition & 0 deletions ci/template-test/providers.tf
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ terraform {
required_providers {
solacebroker = {
source = "registry.terraform.io/solaceproducts/solacebroker"
version = "~> 0.9"
}
}
required_version = "~> 1.2"
Expand Down
1 change: 1 addition & 0 deletions examples/acl-profile-exceptions/providers.tf
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ terraform {
required_providers {
solacebroker = {
source = "registry.terraform.io/solaceproducts/solacebroker"
version = "~> 0.9"
}
}
required_version = "~> 1.2"
Expand Down
1 change: 1 addition & 0 deletions examples/authorization-group/providers.tf
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ terraform {
required_providers {
solacebroker = {
source = "registry.terraform.io/solaceproducts/solacebroker"
version = "~> 0.9"
}
}
required_version = "~> 1.2"
Expand Down
1 change: 1 addition & 0 deletions examples/basic-client-username/providers.tf
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ terraform {
required_providers {
solacebroker = {
source = "registry.terraform.io/solaceproducts/solacebroker"
version = "~> 0.9"
}
}
required_version = "~> 1.2"
Expand Down
1 change: 1 addition & 0 deletions examples/client-username-attributes/providers.tf
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ terraform {
required_providers {
solacebroker = {
source = "registry.terraform.io/solaceproducts/solacebroker"
version = "~> 0.9"
}
}
required_version = "~> 1.2"
Expand Down
1 change: 0 additions & 1 deletion internal/gen-template/provider.tf
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ terraform {
required_providers {
solacebroker = {
source = "registry.terraform.io/solaceproducts/solacebroker"
# TODO: auto-update version
version = "~> 0.9"
}
}
Expand Down
1 change: 0 additions & 1 deletion provider.tf
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ terraform {
required_providers {
solacebroker = {
source = "registry.terraform.io/solaceproducts/solacebroker"
# TODO: auto-update version
version = "~> 0.9"
}
}
Expand Down

0 comments on commit b85e7cf

Please sign in to comment.