Skip to content

Commit ad8e0a2

Browse files
authored
Update main_product-docs-prod.yml
1 parent 10407da commit ad8e0a2

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.github/workflows/main_product-docs-prod.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -187,10 +187,13 @@ jobs:
187187
./set_content_types.sh
188188
189189
- name: Purge CDN endpoint (if configured)
190-
if: ${{ secrets.CDN_ENDPOINT_NAME != '' && secrets.CDN_PROFILE_NAME != '' && secrets.CDN_RESOURCE_GROUP != '' }}
191190
run: |
192-
echo "Note: CDN purge requires Azure login. Skipping CDN purge when using storage key authentication."
193-
echo "To use CDN purge, you'll need to use Azure AD authentication or purge CDN manually."
191+
if [[ -n "${{ secrets.CDN_ENDPOINT_NAME }}" ]] && [[ -n "${{ secrets.CDN_PROFILE_NAME }}" ]] && [[ -n "${{ secrets.CDN_RESOURCE_GROUP }}" ]]; then
192+
echo "Note: CDN purge requires Azure login. Skipping CDN purge when using storage key authentication."
193+
echo "To use CDN purge, you'll need to use Azure AD authentication or purge CDN manually."
194+
else
195+
echo "CDN configuration not found, skipping CDN purge."
196+
fi
194197
195198
- name: Display deployment URL
196199
run: |

0 commit comments

Comments
 (0)