Skip to content

Commit 850e074

Browse files
committed
fix: guard windows nightly cache purge secrets
1 parent 964b316 commit 850e074

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/desktop-nightly.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ jobs:
170170
aws s3 cp "apps/desktop/channel-artifacts-win/${{ steps.artifacts.outputs.manifest_file }}" "s3://nexu-desktop-releases/$prefix/${{ steps.artifacts.outputs.manifest_file }}" --no-progress
171171
172172
- name: Purge Windows latest CDN artifacts
173-
if: env.CLOUDFLARE_ZONE_ID != ''
173+
if: secrets.CLOUDFLARE_ZONE_ID != '' && secrets.CLOUDFLARE_PURGE_API_TOKEN != ''
174174
env:
175175
CLOUDFLARE_ZONE_ID: ${{ secrets.CLOUDFLARE_ZONE_ID }}
176176
CLOUDFLARE_PURGE_API_TOKEN: ${{ secrets.CLOUDFLARE_PURGE_API_TOKEN }}

0 commit comments

Comments
 (0)