Skip to content

Commit

Permalink
Merge pull request #34 from Think-Cube/patch-1
Browse files Browse the repository at this point in the history
Update backend.tf
  • Loading branch information
spy86 authored Jan 22, 2025
2 parents 06951f7 + b630ae5 commit 790a1b2
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 11 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
| Name | Version |
|------|---------|
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 1.6.3 |
| <a name="requirement_azurerm"></a> [azurerm](#requirement\_azurerm) | 4.12.0 |
| <a name="requirement_azurerm"></a> [azurerm](#requirement\_azurerm) | 4.14.0 |

## Providers

| Name | Version |
|------|---------|
| <a name="provider_azurerm"></a> [azurerm](#provider\_azurerm) | 4.12.0 |
| <a name="provider_azurerm"></a> [azurerm](#provider\_azurerm) | 4.14.0 |

## Modules

Expand All @@ -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

Expand Down
2 changes: 1 addition & 1 deletion backend.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ terraform {
required_providers {
azurerm = {
source = "hashicorp/azurerm"
version = "4.12.0"
version = "4.14.0"
}
}
required_version = ">= 1.6.3"
Expand Down
13 changes: 7 additions & 6 deletions pipelines/azure-pipelines-pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 790a1b2

Please sign in to comment.