Skip to content

Commit

Permalink
Add Git commit message for terraform-docs
Browse files Browse the repository at this point in the history
* Creates a commit message the same as the Renovate commit message, with
  '- Terraform Docs' appended
  • Loading branch information
Stretch96 committed Oct 18, 2023
1 parent 4f060c2 commit 21e4d91
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/continuous-integration-terraform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,10 @@ jobs:
run: |
echo "$GITHUB_PR_BRANCH"
- name: Output Git commit message (Debugging)
run: |
echo "${{ github.event.commits[0].message }}"
- name: Generate Terraform docs
uses: terraform-docs/[email protected]
if: "!startsWith(env.GITHUB_PR_BRANCH, 'renovate/')"
Expand All @@ -97,3 +101,4 @@ jobs:
output-method: inject
git-push: true
ref: ${{ github.event.pull_request.head.ref }}
git-commit-message: ${{ github.event.commits[0].message }} - Terraform Docs

0 comments on commit 21e4d91

Please sign in to comment.