Skip to content

Commit fca42d5

Browse files
committed
Fix linting
1 parent 7c607f2 commit fca42d5

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

.github/workflows/deploy-product.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@ on:
1515
required: false
1616
DV_BOT_USER:
1717
required: false
18+
DV_AWS_ECR_ROLE:
19+
required: false
20+
DV_AWS_REGION:
21+
required: false
22+
1823
inputs:
1924
stage:
2025
description: "stage that should be deployed (develop|qa|production)"
@@ -83,21 +88,21 @@ jobs:
8388
workflow_file_name: "deploy-app.yml"
8489
ref: ${{ env.WORKFLOW_BRANCH }}
8590
github_user: ${{ secrets.DV_BOT_USER }}
86-
client_payload: '{ "app": "${{ steps.get-parameters.outputs.app }}", "customer": "${{ inputs.customer }}", "stage": "${{ inputs.stage }}", "sub_app": "${{ steps.get-parameters.outputs.sub_app }}", "branch": "${{ steps.get-parameters.outputs.image_tag2 }}", "add_revision_as_tag": "${{ fromJSON(inputs.add_revision_as_tag) }}" }'
91+
client_payload: '{ "app": "${{ steps.get-parameters.outputs.app }}", "customer": "${{ inputs.customer }}", "stage": "${{ inputs.stage }}", "sub_app": "${{ steps.get-parameters.outputs.sub_app }}", "branch": "${{ steps.get-parameters.outputs.image_tag2 }}", "add_revision_as_tag": "${{ inputs.add_revision_as_tag }}" }'
8792
- name: Configure AWS Credentials
88-
if: ${{ inputs.add_revision_as_tag }} == true
93+
if: ${{ inputs.add_revision_as_tag == 'true' }}
8994
uses: aws-actions/[email protected]
9095
with:
9196
role-to-assume: ${{ secrets.DV_AWS_ECR_ROLE }}
9297
aws_role: ${{ secrets.DV_AWS_ECR_ROLE }}
9398
aws-region: ${{ secrets.DV_AWS_REGION }}
9499
- name: Login to Amazon ECR
95-
if: ${{ inputs.add_revision_as_tag }} == true
100+
if: ${{ inputs.add_revision_as_tag == 'true' }}
96101
id: login-ecr
97102
uses: aws-actions/[email protected]
98103
- name: get revision label
99104
id: get-revision-label
100-
if: ${{ inputs.add_revision_as_tag }} == true
105+
if: ${{ inputs.add_revision_as_tag == 'true' }}
101106
run: |
102107
echo "fetch labels of image"
103108
ECR_REPO=$(echo ${{ steps.get-parameters.outputs.ecr_repos }} | cut -d ',' -f 1)

0 commit comments

Comments
 (0)