From 2f8d3576dd47c102424bbebcda35217bf1d3740d Mon Sep 17 00:00:00 2001 From: Admiral Date: Tue, 2 Apr 2024 09:36:43 +0200 Subject: [PATCH] Update ci.yml Refactoring due to API-issues with Github --- .github/workflows/ci.yml | 26 ++++++++++++-------------- 1 file changed, 12 insertions(+), 14 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9b17093..35f5000 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -49,28 +49,26 @@ jobs: with: github-token: ${{ secrets.GITHUB_TOKEN }} script: | - const output = `#### Terraform Format and Style 🖌\`${{ steps.fmt.outcome }}\` - #### Terraform Initialization 🤖\`${{ steps.init.outcome }}\` - #### Terraform Validation 🤖\`${{ steps.validate.outcome }}\` - #### Terraform Plan 📖\`${{ steps.plan.outcome }}\` + const output = `#### Terraform Format and Style 🖌\`\` + #### Terraform Initialization 🤖\`\` + #### Terraform Validation 🤖\`\` + #### Terraform Plan 📖\`\`
Show Plan - + \`\`\`\n - ${{ steps.plan.outputs.stdout }} + \`\`\` - +
- + *Pushed by: @${{ github.actor }}, Action: \`${{ github.event_name }}\`*`; - + github.rest.issues.createComment({ - issue_number: context.issue.number, - owner: context.repo.owner, - repo: context.repo.repo, + issue_number: '${{ github.event.number }}', + owner: '${{ github.repository_owner }}', + repo: '${{ github.repository }}', body: output }) - env: - DEBUG: true - name: Terraform Plan Status if: steps.plan.outcome == 'failure'