Skip to content

Commit

Permalink
Update terraform_plan.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
arnol377 committed Aug 20, 2024
1 parent 3920a3e commit 8ca3751
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/terraform_plan.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,13 +68,20 @@ jobs:

- name: Terraform Plan
id: plan
run: terraform plan
if: github.event_name == 'pull_request'
run: terraform plan -out plans/${{ github.sha }}
continue-on-error: true

- name: Terraform Plan
id: show_plan
if: github.event_name == 'pull_request'
run: terraform show plans/${{ github.sha }}
continue-on-error: true

- uses: CSVD/gh-actions-github-script@v6
if: github.event_name == 'pull_request'
env:
PLAN: "terraform\n${{ steps.plan.outputs.stdout }}"
PLAN: "terraform\n${{ steps.show_plan.outputs.stdout }}"
with:
github-token: ${{ secrets.GH_TOKEN }}
script: |
Expand Down

0 comments on commit 8ca3751

Please sign in to comment.