diff --git a/README.md b/README.md index 7f7d708..b7edadc 100644 --- a/README.md +++ b/README.md @@ -3,13 +3,13 @@ | Name | Version | |------|---------| | [terraform](#requirement\_terraform) | >= 1.6.3 | -| [azurerm](#requirement\_azurerm) | 4.12.0 | +| [azurerm](#requirement\_azurerm) | 4.14.0 | ## Providers | Name | Version | |------|---------| -| [azurerm](#provider\_azurerm) | 4.12.0 | +| [azurerm](#provider\_azurerm) | 4.14.0 | ## Modules @@ -19,8 +19,8 @@ No modules. | Name | Type | |------|------| -| [azurerm_resource_group.main](https://registry.terraform.io/providers/hashicorp/azurerm/4.12.0/docs/resources/resource_group) | resource | -| [azurerm_client_config.current](https://registry.terraform.io/providers/hashicorp/azurerm/4.12.0/docs/data-sources/client_config) | data source | +| [azurerm_resource_group.main](https://registry.terraform.io/providers/hashicorp/azurerm/4.14.0/docs/resources/resource_group) | resource | +| [azurerm_client_config.current](https://registry.terraform.io/providers/hashicorp/azurerm/4.14.0/docs/data-sources/client_config) | data source | ## Inputs diff --git a/backend.tf b/backend.tf index d0252b1..ebee60c 100644 --- a/backend.tf +++ b/backend.tf @@ -2,7 +2,7 @@ terraform { required_providers { azurerm = { source = "hashicorp/azurerm" - version = "4.12.0" + version = "4.14.0" } } required_version = ">= 1.6.3" diff --git a/pipelines/azure-pipelines-pr.yaml b/pipelines/azure-pipelines-pr.yaml index 299f529..6181691 100644 --- a/pipelines/azure-pipelines-pr.yaml +++ b/pipelines/azure-pipelines-pr.yaml @@ -17,7 +17,7 @@ variables: - name: VM_IMAGE value: ubuntu-latest - name: MODULE_NAME - value: "terraform-azure-resource-group" + value: "terraform-azure-resource-group" pool: vmImage: $(VM_IMAGE) stages: @@ -55,16 +55,17 @@ stages: # Generate or update README.md /tmp/terraform-docs markdown table . > README.md - # Check for changes in README.md - if git diff --name-only | grep -q README.md; then - echo "README.md file updated. Preparing to commit changes." - git config --global user.email "devops-bot@example.com" + # Check if README.md has been updated or created and add to PR + if [ -f README.md ]; then + echo "README.md file generated/updated." + git config --global user.email "devops-bot@thinkcube.dev" + git config --global user.name "DevOps Bot" git add README.md git commit -m "Update README.md with module documentation" # Set remote URL with authentication token - git remote set-url origin https://$(GITHUB_TOKEN)@github.com/Think-Cube/terraform-azure-resource-group.git + git remote set-url origin https://$(GITHUB_TOKEN)@github.com/$(GITHUB_REPO).git # Pull the latest changes to avoid conflicts (source branch of the PR) git pull origin '$(System.PullRequest.SourceBranch)' --rebase || exit 1