Skip to content

Commit

Permalink
Merge pull request #44 from hmcts/test-apply
Browse files Browse the repository at this point in the history
test apply
  • Loading branch information
ConnorOKane-Kainos authored Aug 30, 2024
2 parents 9b4ab79 + 810fffe commit bfa4e89
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/terraform.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ on:
pull_request:
branches:
- main

push:
branches:
- main
workflow_dispatch:

permissions:
Expand Down Expand Up @@ -56,7 +60,7 @@ jobs:

- name: Terraform Apply
working-directory: components
if: github.event.pull_request.merged == true
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
env:
ARM_CLIENT_ID: ${{ secrets.AZURE_CLIENT_ID }}
ARM_SUBSCRIPTION_ID: ${{ secrets.DCD_CFT_SANDBOX_SUBSCRIPTION }}
Expand Down

0 comments on commit bfa4e89

Please sign in to comment.