changed branch requirements

This commit is contained in:
Khalim Conn-Kowlessar 2023-07-05 19:36:42 +01:00
parent 112c7bedbb
commit 695672999a

View file

@ -57,7 +57,7 @@ jobs:
terraform workspace select ${{ github.event.pull_request.base.ref }} || terraform workspace new ${{ github.event.pull_request.base.ref }}
- name: Deploy to Dev
if: github.event.pull_request.base.ref == 'main' && github.event.pull_request.head.ref == 'dev' && github.event.pull_request.merged == true
if: github.event.pull_request.head.ref == 'dev' && github.event.pull_request.merged == true
run: cd infrastructure/terraform && terraform apply -var-file=dev.tfvars -auto-approve
env:
name: dev