Skip to content

Commit

Permalink
chore: adding missing if conditionals
Browse files Browse the repository at this point in the history
  • Loading branch information
saikumarrs committed Dec 13, 2024
1 parent b69347c commit b09dd13
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,7 @@ jobs:
aws cloudfront wait invalidation-completed --distribution-id ${{ secrets.AWS_CF_DISTRIBUTION_ID }} --id "$invalidation_id"
- name: Copy legacy SDK artifacts to S3 (versioned directory)
if: ${{ inputs.environment == 'production' }}
run: |
core_sdk_path_prefix="packages/analytics-v1.1/dist/cdn"
integration_sdks_path_prefix="packages/analytics-js-integrations/dist/cdn"
Expand All @@ -314,6 +315,7 @@ jobs:
aws s3 cp $integration_sdks_path_prefix/modern/js-integrations/ $s3_path_prefix/modern/js-integrations/ $copy_args
- name: Invalidate CloudFront cache for all the legacy SDK artifacts (versioned directory)
if: ${{ inputs.environment == 'production' }}
run: |
invalidation_id=$(AWS_MAX_ATTEMPTS=10 aws cloudfront create-invalidation --distribution-id ${{ secrets.AWS_CF_DISTRIBUTION_ID }} --paths "/${{ env.CURRENT_VERSION_V1_VALUE }}/*" --query "Invalidation.Id" --output text)
Expand Down

0 comments on commit b09dd13

Please sign in to comment.