From 8f40a11008e884ff36e14add9b1a8e1610a8c7b8 Mon Sep 17 00:00:00 2001 From: Christophe Date: Tue, 2 Jan 2024 20:08:50 +0100 Subject: [PATCH] Fix if condition --- .github/workflows/generate-token-lists.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/generate-token-lists.yml b/.github/workflows/generate-token-lists.yml index fdcd4cab..7ddb25c5 100644 --- a/.github/workflows/generate-token-lists.yml +++ b/.github/workflows/generate-token-lists.yml @@ -163,7 +163,7 @@ jobs: paths=(${{ join(matrix.commands.paths, ' ') }}) for path in ${paths[*]} do - if (( "${{ inputs.environment }}" == 'Test' )) + if [[ "${{ inputs.environment }}" == "Test" ]] then additionalPath='TestFolder/' else @@ -171,7 +171,7 @@ jobs: fi lines=$(aws s3 ls s3://${{ secrets.AWS_BUCKET }}/$additionalPath$path | wc -l) if (( $lines > 0 )); then - aws s3 cp s3://${{ secrets.AWS_BUCKET }}/TestFolder/$path s3://${{ secrets.AWS_BUCKET }}/$additionalPath/${{ steps.onlineVersion.outputs.onlineVersion }}/ --dryrun + aws s3 cp s3://${{ secrets.AWS_BUCKET }}/$additionalPath$path s3://${{ secrets.AWS_BUCKET }}/$additionalPath${{ steps.onlineVersion.outputs.onlineVersion }}/ --dryrun fi done