Skip to content

Commit 65e6894

Browse files
committed
add schedule cron support
1 parent b362c04 commit 65e6894

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/iac.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,7 @@ jobs:
151151

152152
- name: Configure AWS Credentials
153153
uses: aws-actions/configure-aws-credentials@v4.0.2
154+
if: inputs.ENVIRONMENT == 'aws'
154155
with:
155156
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
156157
aws-secret-access-key: ${{ secrets.AWS_ACCESS_KEY_SECRET }}
@@ -273,7 +274,7 @@ jobs:
273274
issue-title: "Terragrunt approval pending for ${{ inputs.WORKING_DIR }}"
274275

275276
- name: Apply
276-
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
277+
if: github.ref == 'refs/heads/main' && github.event_name == 'push' || github.event_name == 'schedule'
277278
uses: gruntwork-io/terragrunt-action@v2.1.4
278279
id: apply
279280
with:

0 commit comments

Comments
 (0)