We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d218423 commit 8882949Copy full SHA for 8882949
.github/workflows/terraform-checks.yml
@@ -48,8 +48,11 @@ jobs:
48
working-dir: ./terraform/snowflake/modules/elt
49
output-file: ../../../../docs/infra/snowflake.md
50
# This shouldn't be necessary but the terraform-docs action has a bug
51
- # preventing it from (git) adding files outside of working-dir.
+ # preventing it from git-adding files outside of 'working-dir'.
52
# See: https://github.com/terraform-docs/gh-actions/pull/108
53
- name: Commit any files changed by terraform-docs
54
run: |
55
- git status
+ 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