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 d86f1e7 commit a6864cc
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 @@ -70,9 +70,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 @@ -94,3 +94,4 @@ jobs:
output-method: inject
git-push: true
ref: ${{ github.event.pull_request.head.ref }}
git-commit-message: "${{ env.GIT_COMMIT_MESSAGE }} - Terraform Docs"

0 comments on commit a6864cc

Please sign in to comment.