From 9dbd4b67de95970d1344618cdd9642338e495b6a Mon Sep 17 00:00:00 2001 From: Chris Harrison <36608309+chris3ware@users.noreply.github.com> Date: Thu, 13 Feb 2025 09:50:41 +0000 Subject: [PATCH] style(terraform-docs): Move env above with in workflow (#126) --- .github/workflows/terraform-docs.yaml | 6 +++--- testfile.txt | 1 - 2 files changed, 3 insertions(+), 4 deletions(-) delete mode 100644 testfile.txt diff --git a/.github/workflows/terraform-docs.yaml b/.github/workflows/terraform-docs.yaml index 2c9e0c2..2475de3 100644 --- a/.github/workflows/terraform-docs.yaml +++ b/.github/workflows/terraform-docs.yaml @@ -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 diff --git a/testfile.txt b/testfile.txt deleted file mode 100644 index dd8535d..0000000 --- a/testfile.txt +++ /dev/null @@ -1 +0,0 @@ -A PR to Test the new PR title functionality \ No newline at end of file