Skip to content

Commit 1a2e259

Browse files
committed
NRL-1595 Fix exit codes
1 parent 60a702b commit 1a2e259

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

.github/workflows/deploy-account-wide-infra.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,6 @@ run-name: Account-wide infra deployment to ${{ inputs.environment }} of ${{ inpu
1515
# Looping through envs to pull certs
1616

1717
on:
18-
push:
19-
branches:
20-
- NRL-1595**
2118
workflow_dispatch:
2219
inputs:
2320
environment:
@@ -28,6 +25,9 @@ on:
2825
branch_name:
2926
description: Branch to deploy
3027
required: true
28+
push:
29+
branches:
30+
- NRL-1595**
3131

3232
permissions:
3333
id-token: write
@@ -44,7 +44,10 @@ jobs:
4444
IS_VALID_ENV: ${{ startsWith(inputs.environment, 'account-') }}
4545
run: |
4646
echo $IS_VALID_ENV
47-
exit $IS_VALID_ENV == true
47+
if [$IS_VALID_ENV == true]; then
48+
exit 0
49+
fi
50+
exit 1
4851
4952
terraform-plan:
5053
name: Terraform Plan - ${{ inputs.environment }}

0 commit comments

Comments
 (0)