Skip to content

Commit bb27212

Browse files
committed
[HOTFIX] Fix syntax error in Purge CDN workflow
1 parent 704b051 commit bb27212

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/purge-cdn.yaml

+4-4
Original file line numberDiff line numberDiff line change
@@ -42,23 +42,23 @@ jobs:
4242
- name: Purge CDN cache
4343
shell: pwsh
4444
run: |
45-
if (-not ${{ inputs.cdnResourceGroup }}) {
45+
if (-not "${{ inputs.cdnResourceGroup }}") {
4646
Write-Error "CDN Resource Group is required. Please provide the CDN Resource Group name when calling the workflow."
4747
exit 1
4848
}
4949
else {
5050
$ResourceGroup="${{ inputs.cdnResourceGroup }}"
5151
}
5252
53-
if (-not ${{ inputs.cdnProfile }}) {
53+
if (-not "${{ inputs.cdnProfile }}") {
5454
Write-Error "CDN Profile is required. Please provide the CDN Profile name when calling the workflow."
5555
exit 1
5656
}
5757
else {
5858
$ProfileName="${{ inputs.cdnProfile }}"
5959
}
6060
61-
if (-not ${{ inputs.cdnEndpoint }}) {
61+
if (-not "${{ inputs.cdnEndpoint }}") {
6262
if ("${{ github.event.repository.name }}" -match "*_game") {
6363
$EndpointName = (az afd endpoint list --profile-name "$ProfileName" --resource-group "$ResourceGroup" --query "[?tags.\"repository-name\" == '${{ github.event.repository.name }}'].name" -o tsv)
6464
}
@@ -71,7 +71,7 @@ jobs:
7171
$EndpointName="${{ inputs.cdnEndpoint }}"
7272
}
7373
74-
if (${{ inputs.resourceType }} -eq 'frontdoor') {
74+
if ("${{ inputs.resourceType }}" -eq 'frontdoor') {
7575
Clear-AzFrontDoorEndpointContent -EndpointName $EndpointName -ProfileName $ProfileName -ResourceGroupName $ResourceGroup -ContentPaths '/*'
7676
}
7777
else {

0 commit comments

Comments
 (0)