Skip to content

Commit

Permalink
Merge branch 'main' into dependabot/terraform/stacks/sample_bucket/te…
Browse files Browse the repository at this point in the history
…rraform-41669d10f5
  • Loading branch information
rdhar authored Jun 7, 2024
2 parents eae82db + 978688c commit caea76d
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/tf_sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: TF Sample
on:
pull_request:
types: [opened, reopened, synchronize, closed]
paths: [stacks/sample_instance/**]
paths: [.github/workflows/tf_sample.yaml, stacks/**/*]

permissions:
actions: read # Required for workflow query and artifact download.
Expand Down Expand Up @@ -48,6 +48,10 @@ jobs:
command_input: ${{ format('-tf={0} -chdir=stacks/sample_instance -var-file=env/{1}.tfvars', github.event.action != 'closed' && 'plan' || 'apply', matrix.context) }}
cache_plugins: false

- name: Await resource initialization
if: github.event.action == 'closed'
run: sleep 60

- name: Deprovision TF
if: github.event.action == 'closed'
uses: ./
Expand Down Expand Up @@ -85,6 +89,10 @@ jobs:
command_input: ${{ format('-tf={0} -chdir=stacks/sample_bucket -backend-config=backend/{1}.tfbackend', github.event.action != 'closed' && 'plan' || 'apply', matrix.context) }}
cache_plugins: false

- name: Await resource initialization
if: github.event.action == 'closed'
run: sleep 60

- name: Deprovision TF
if: github.event.action == 'closed'
uses: ./
Expand Down

0 comments on commit caea76d

Please sign in to comment.