Skip to content

Commit

Permalink
Update ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
AdmiraalA committed Apr 2, 2024
1 parent c3c9b48 commit 0580abf
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Terraform Cloud

on:
push:
branches: [ main ]
branches: [main]
pull_request:

env:
Expand Down Expand Up @@ -57,13 +57,17 @@ jobs:
\`\`\`\n\n\`\`\`
</details>
*Pushed by: @${{ github.actor }}, Action: \`${{ github.event_name }}\`*`;
await github.rest.issues.createComment({
issue_number: context.payload.pull_request.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: output
});
if (context.payload.pull_request) {
await github.rest.issues.createComment({
issue_number: context.payload.pull_request.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: output
});
} else {
console.log('No pull request context found.');
}
- name: Terraform Plan Status
if: steps.plan.outcome == 'failure'
Expand Down

0 comments on commit 0580abf

Please sign in to comment.