Skip to content

Commit 4401b7d

Browse files
fix: conditional statement added with azure login
1 parent 5585bbb commit 4401b7d

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/workflows/helm.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,12 +74,19 @@ jobs:
7474
uses: actions/checkout@v3
7575

7676
- name: Configure AWS credentials
77+
if: ${{ inputs.provider == 'aws' }}
7778
uses: aws-actions/configure-aws-credentials@v1
7879
with:
7980
aws-access-key-id: ${{ secrets.aws-access-key-id }}
8081
aws-secret-access-key: ${{ secrets.aws-secret-access-key }}
8182
aws-region: ${{ inputs.aws-region }}
8283

84+
- name: Install Azure CLI
85+
if: ${{ inputs.provider == 'azure' }}
86+
uses: azure/login@v1
87+
with:
88+
creds: ${{ secrets.AZURE_CREDENTIALS }}
89+
8390
- name: Update Kubeconfig
8491
run: |
8592
if [ "${{ inputs.provider }}" = "azure" ]; then

0 commit comments

Comments
 (0)