Skip to content

Commit bd0cd4e

Browse files
committed
Fix GitHub Actions workflow: enable push trigger and correct secret name variable
1 parent 5db6a59 commit bd0cd4e

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

.github/workflows/deploy-ec2.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ name: Deploy to EC2
33
run-name: ${{ github.event_name == 'workflow_dispatch' && format('[{0}] - {1}', github.event.inputs.environment, github.workflow) || format('[uat] - {0}', github.event.head_commit.message) }}
44

55
on:
6-
# push:
7-
# branches:
8-
# - main
6+
push:
7+
branches:
8+
- main
99
workflow_dispatch:
1010
inputs:
1111
environment:
@@ -44,7 +44,7 @@ jobs:
4444
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
4545
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
4646
AWS_DEFAULT_REGION: ${{ secrets.AWS_REGION }}
47-
SECRET_NAME: ${{ env.AWS_SECRET_NAME }}
47+
SECRET_NAME: ${{ vars.AWS_SECRET_NAME }}
4848
OUTPUT_PATH: '.env'
4949

5050
- name: Install jinjanator

0 commit comments

Comments
 (0)