Skip to content

Commit e8362f1

Browse files
committed
Switch check of add_revision_as_tag to boolean
1 parent fca42d5 commit e8362f1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/deploy-product.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,19 +90,19 @@ jobs:
9090
github_user: ${{ secrets.DV_BOT_USER }}
9191
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 }}" }'
9292
- name: Configure AWS Credentials
93-
if: ${{ inputs.add_revision_as_tag == 'true' }}
93+
if: ${{ inputs.add_revision_as_tag == true }}
9494
uses: aws-actions/[email protected]
9595
with:
9696
role-to-assume: ${{ secrets.DV_AWS_ECR_ROLE }}
9797
aws_role: ${{ secrets.DV_AWS_ECR_ROLE }}
9898
aws-region: ${{ secrets.DV_AWS_REGION }}
9999
- name: Login to Amazon ECR
100-
if: ${{ inputs.add_revision_as_tag == 'true' }}
100+
if: ${{ inputs.add_revision_as_tag == true }}
101101
id: login-ecr
102102
uses: aws-actions/[email protected]
103103
- name: get revision label
104104
id: get-revision-label
105-
if: ${{ inputs.add_revision_as_tag == 'true' }}
105+
if: ${{ inputs.add_revision_as_tag == true }}
106106
run: |
107107
echo "fetch labels of image"
108108
ECR_REPO=$(echo ${{ steps.get-parameters.outputs.ecr_repos }} | cut -d ',' -f 1)

0 commit comments

Comments
 (0)