Skip to content

Commit

Permalink
style(terraform-docs): Move env above with in workflow (#126)
Browse files Browse the repository at this point in the history
  • Loading branch information
chris3ware authored Feb 13, 2025
1 parent d417265 commit 9dbd4b6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/terraform-docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,19 +55,19 @@ jobs:
- name: Push verified commit
if: ${{ steps.terraform-docs.outputs.num_changed != 0 }}
id: push-with-sig
env:
GITHUB_TOKEN: ${{ steps.decrypt-token.outputs.temp-token }}
uses: planetscale/ghcommit-action@c7915d6c18d5ce4eb42b0eff3f10a29fe0766e4c # v0.1.44
with:
commit_message: "docs(terraform): Update ${{ env.TF_DOCS_FILE }}"
repo: ${{ github.repository }}
branch: ${{ env.BRANCH }}
file_pattern: "terraform/**/${{ env.TF_DOCS_FILE }}"
env:
GITHUB_TOKEN: ${{ steps.decrypt-token.outputs.temp-token }}

- name: Summary with commit failure
if: ${{ failure() && steps.push-with-sig.outcome == 'failure' }}
run: |
echo "### :bangbang: ${{ env.TF_DOCS_FILE }} not updated" >> $GITHUB_STEP_SUMMARY
echo "### :x: ${{ env.TF_DOCS_FILE }} not updated" >> $GITHUB_STEP_SUMMARY
echo "" >> $GITHUB_STEP_SUMMARY
echo "#### Commit failure" >> $GITHUB_STEP_SUMMARY
echo "" >> $GITHUB_STEP_SUMMARY
Expand Down
1 change: 0 additions & 1 deletion testfile.txt

This file was deleted.

0 comments on commit 9dbd4b6

Please sign in to comment.