-
Notifications
You must be signed in to change notification settings - Fork 3
40 lines (32 loc) · 1008 Bytes
/
dev_push.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# name: Terraform Apply
# on:
# pull_request:
# types:
# - closed
# branches:
# - development
# paths:
# - 'frontend/**'
# jobs:
# terraform_apply:
# runs-on: ubuntu-latest
# steps:
# - name: Check if push is from a PR
# if: ${{ github.event.pull_request.merged }}
# run: |
# echo " I think this worked ?? "
# - name: Get PR ID
# id: pr-id
# shell: bash
# run: echo "PR_NUMBER=${{ github.event.pull_request.number }}" >> $GITHUB_ENV
# # - name: Display Terraform Plan
# # if: success() && env.TERRAFORM_ARCHIVE_PATH
# # run: |
# # # Unzip and display the Terraform plan
# # unzip -q $TERRAFORM_ARCHIVE_PATH -d terraform_plan
# # cat terraform_plan/tfplan
# # - name: Apply Terraform Changes
# # if: success() && !env.TERRAFORM_ARCHIVE_PATH
# # run: |
# # # Apply Terraform changes without a plan
# # terraform apply -auto-approve