Skip to content

Commit 510216e

Browse files
committed
Pipeline detection of changed example
1 parent 435c079 commit 510216e

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

.github/workflows/terraform.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
env:
3636
BASE_SHA: ${{ github.event.pull_request.base.sha }}
3737
run: |
38-
JQ_OUTPUT_CHANGED=$(git diff --name-only $BASE_SHA $GITHUB_SHA modules/*/*/*.tf |
38+
JQ_OUTPUT_CHANGED=$(git diff --name-only $BASE_SHA $GITHUB_SHA modules/**/*.tf |
3939
cut -d/ -f1-3 | sort -u | jq -MRsc 'split("\n")[:-1]')
4040
echo "changed_modules=$JQ_OUTPUT_CHANGED" >> $GITHUB_OUTPUT
4141

modules/aws/route53/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,9 @@ the bare domain and www subdomain to the canonical domain.
9393
module "example_com" {
9494
source = "github.com/answerdigital/terraform-modules//modules/aws/route53?ref=v2"
9595
96-
domain = "examples.com"
96+
domain = "example.com"
9797
aliases = [
98-
"examples.org" # examples.org and www.examples.org will redirect to examples.com
98+
"example.org" # example.org and www.example.org will redirect to example.com
9999
]
100100
alias_records = {
101101
"example.org" = {

modules/aws/route53/examples/example.tf

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,15 @@ module "example_com" {
2020
}
2121
}
2222
records = {
23+
google_site_verification = {
24+
name = "google-site-verification"
25+
type = "TXT"
26+
records = ["google-site-verification-key"]
27+
}
2328
www = {
2429
name = "www"
2530
type = "A"
2631
records = ["1.2.3.4"]
2732
}
2833
}
29-
3034
}

0 commit comments

Comments
 (0)