Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
17 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 15 additions & 1 deletion .github/workflows/terraform-fmt.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,20 @@ on:
- '**.tfvars'
- '**.tfvars.json'

pull_request:
types:
- opened
- synchronize
- closed
- edited

branches:
- main
paths:
- '**.tf'
- '**.tfvars'
- '**.tfvars.json'

permissions:
contents: write

Expand All @@ -37,7 +51,7 @@ jobs:

- name: Run the tree generation script
run: |
terraform fmt -recursive -check
terraform fmt -recursive

- name: Commit and Push Changes
env:
Expand Down
10 changes: 10 additions & 0 deletions azure-data-share/datashare.tf
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ resource "azurerm_resource_group" "datashare" {
ApplicationName = lower(var.application_name)
Temporary = upper(var.temporary)
}
lifecycle {
ignore_changes = [tags]
}
}


Expand All @@ -25,6 +28,9 @@ resource "azurerm_data_share_account" "datashare" {
# https://github.com/Azure/azure-rest-api-specs/issues/9280

# tags = azurerm_resource_group.datashare.tags
lifecycle {
ignore_changes = [tags]
}

}

Expand All @@ -41,4 +47,8 @@ resource "azurerm_data_share" "datashare" {
recurrence = var.snapshot_recurrence
start_time = local.computed_start_time
}

lifecycle {
ignore_changes = [tags]
}
}
Loading