Skip to content

Commit 8882949

Browse files
committed
dev
1 parent d218423 commit 8882949

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/terraform-checks.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,11 @@ jobs:
4848
working-dir: ./terraform/snowflake/modules/elt
4949
output-file: ../../../../docs/infra/snowflake.md
5050
# This shouldn't be necessary but the terraform-docs action has a bug
51-
# preventing it from (git) adding files outside of working-dir.
51+
# preventing it from git-adding files outside of 'working-dir'.
5252
# See: https://github.com/terraform-docs/gh-actions/pull/108
5353
- name: Commit any files changed by terraform-docs
5454
run: |
55-
git status
55+
git add docs/code/terraform-local-setup.md
56+
git add docs/infra/snowflake.md
57+
# Run git commit if changed files are detected
58+
git status --porcelain | grep -q '[AM ][AM ]\s\+\S\+' || git commit -m "Automated terraform-docs commit"

0 commit comments

Comments
 (0)