Skip to content

Commit

Permalink
Merge pull request #17 from dxw/add-terraform-docs-git-commit-message
Browse files Browse the repository at this point in the history
Add Git commit message for terraform-docs
  • Loading branch information
Stretch96 authored Oct 18, 2023
2 parents d86f1e7 + a6864cc commit 155bd14
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 155bd14

Please sign in to comment.