mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-08 11:17:27 +00:00
terraform apply based on branch name
This commit is contained in:
parent
5001893490
commit
2881ecd287
1 changed files with 2 additions and 1 deletions
3
.github/workflows/_deploy_lambda.yml
vendored
3
.github/workflows/_deploy_lambda.yml
vendored
|
|
@ -27,6 +27,7 @@ on:
|
|||
required: false
|
||||
type: string
|
||||
default: 'false'
|
||||
# can only be 'true' or 'false'
|
||||
|
||||
secrets:
|
||||
AWS_ACCESS_KEY_ID:
|
||||
|
|
@ -92,6 +93,6 @@ jobs:
|
|||
-out=lambdaplan
|
||||
|
||||
- name: Terraform Apply
|
||||
if: inputs.terraform_apply == 'true' || inputs.stage == 'dev' || inputs.stage == 'main'
|
||||
if: inputs.terraform_apply == 'true' || github.ref == 'refs/heads/dev' || github.ref == 'refs/heads/main'
|
||||
working-directory: ${{ inputs.lambda_path }}
|
||||
run: terraform apply -auto-approve lambdaplan
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue