Skip to content

Commit

Permalink
Fix if condition
Browse files Browse the repository at this point in the history
  • Loading branch information
chrstph-dvx committed Jan 2, 2024
1 parent 31c2fbd commit 8f40a11
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/generate-token-lists.yml
Original file line number Diff line number Diff line change
Expand Up @@ -163,15 +163,15 @@ jobs:
paths=(${{ join(matrix.commands.paths, ' ') }})
for path in ${paths[*]}
do
if (( "${{ inputs.environment }}" == 'Test' ))
if [[ "${{ inputs.environment }}" == "Test" ]]
then
additionalPath='TestFolder/'
else
additionalPath='/'
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
Expand Down

0 comments on commit 8f40a11

Please sign in to comment.