Skip to content

Commit 8a3075f

Browse files
committed
fix: DRY_RUN is a string in Github Actions workflows
1 parent ccdf275 commit 8a3075f

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

.github/workflows/update-cloud-samples.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -144,8 +144,7 @@ jobs:
144144

145145
- name: Push Zip and JSON to S3
146146
env:
147-
# Add `--dryrun` if not on "push" event on default branch.
148-
AWS_S3_OPTIONS: --color=on --no-progress ${{ env.DRY_RUN && ' --dryrun' || '' }}
147+
AWS_S3_OPTIONS: --color=on --no-progress ${{ env.DRY_RUN == 'true' && ' --dryrun' || '' }}
149148
run: |
150149
# Not an app, but artifact from the setup job.
151150
mv ./apps/console-json ./console-json
@@ -155,6 +154,6 @@ jobs:
155154
156155
- name: Invalidate Cloudfront Cache
157156
env:
158-
ECHO: ${{ env.DRY_RUN && 'echo' || '' }}
157+
ECHO: ${{ env.DRY_RUN == 'true' && 'echo' || '' }}
159158
run: |
160159
$ECHO aws cloudfront create-invalidation --distribution-id "${AWS_CLOUDFRONT_DISTRIBUTION_ID}" --paths "${S3_UPLOAD_PREFIX}/*" --output text

0 commit comments

Comments
 (0)