File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -42,23 +42,23 @@ jobs:
42
42
- name : Purge CDN cache
43
43
shell : pwsh
44
44
run : |
45
- if (-not ${{ inputs.cdnResourceGroup }}) {
45
+ if (-not " ${{ inputs.cdnResourceGroup }}" ) {
46
46
Write-Error "CDN Resource Group is required. Please provide the CDN Resource Group name when calling the workflow."
47
47
exit 1
48
48
}
49
49
else {
50
50
$ResourceGroup="${{ inputs.cdnResourceGroup }}"
51
51
}
52
52
53
- if (-not ${{ inputs.cdnProfile }}) {
53
+ if (-not " ${{ inputs.cdnProfile }}" ) {
54
54
Write-Error "CDN Profile is required. Please provide the CDN Profile name when calling the workflow."
55
55
exit 1
56
56
}
57
57
else {
58
58
$ProfileName="${{ inputs.cdnProfile }}"
59
59
}
60
60
61
- if (-not ${{ inputs.cdnEndpoint }}) {
61
+ if (-not " ${{ inputs.cdnEndpoint }}" ) {
62
62
if ("${{ github.event.repository.name }}" -match "*_game") {
63
63
$EndpointName = (az afd endpoint list --profile-name "$ProfileName" --resource-group "$ResourceGroup" --query "[?tags.\"repository-name\" == '${{ github.event.repository.name }}'].name" -o tsv)
64
64
}
71
71
$EndpointName="${{ inputs.cdnEndpoint }}"
72
72
}
73
73
74
- if (${{ inputs.resourceType }} -eq 'frontdoor') {
74
+ if (" ${{ inputs.resourceType }}" -eq 'frontdoor') {
75
75
Clear-AzFrontDoorEndpointContent -EndpointName $EndpointName -ProfileName $ProfileName -ResourceGroupName $ResourceGroup -ContentPaths '/*'
76
76
}
77
77
else {
You can’t perform that action at this time.
0 commit comments