Skip to content

Commit dbb575e

Browse files
committed
Pipeline detection of changed example
1 parent c25fe0f commit dbb575e

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ module "example_com" {
9595
9696
domain = "example.com"
9797
aliases = [
98-
"example.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: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,4 @@ module "example_com" {
2727
records = ["1.2.3.4"]
2828
}
2929
}
30-
3130
}

0 commit comments

Comments
 (0)