diff --git a/.github/workflows/terraform-apply.yaml b/.github/workflows/terraform-apply.yaml index 72b7350..b9607b5 100644 --- a/.github/workflows/terraform-apply.yaml +++ b/.github/workflows/terraform-apply.yaml @@ -32,29 +32,5 @@ jobs: run: terraform init working-directory: terraform/environments/prod - name: terraform apply - run: terraform apply -auto-approve > ${GITHUB_WORKSPACE}/apply.out + run: terraform apply -auto-approve working-directory: terraform/environments/prod - - name: update PR with apply - uses: actions/github-script@v7 - with: - script: | - const fs = require('fs'); - const apply_file = fs.readFileSync('${GITHUB_WORKSPACE}/apply.out', 'utf8').toString(); - const output = `### Terraform Apply -
Show Output - - \`\`\`diff - - ${apply_file} - - \`\`\` -
`; - - github.issues.createComment({ - issue_number: context.issue.number, - owner: context.repo.owner, - repo: context.repo.repo, - body: output - }) - -