Skip to content

Commit

Permalink
Add Git commit message for terraform-docs (#44)
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 authored Oct 18, 2023
1 parent 4f060c2 commit 59c952b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/continuous-integration-terraform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,9 @@ jobs:
run: |
echo "GITHUB_PR_BRANCH=${{ github.head_ref }}" >> $GITHUB_ENV
- name: Output PR base branch
- name: Get commit message
run: |
echo "$GITHUB_PR_BRANCH"
echo "GIT_COMMIT_MESSAGE=$(git show -s --format=%s)" >> $GITHUB_ENV
- name: Generate Terraform docs
uses: terraform-docs/[email protected]
Expand All @@ -97,3 +97,4 @@ jobs:
output-method: inject
git-push: true
ref: ${{ github.event.pull_request.head.ref }}
git-commit-message: "$GIT_COMMIT_MESSAGE - Terraform Docs"

0 comments on commit 59c952b

Please sign in to comment.