Skip to content

Commit

Permalink
[HOTFIX] Switch to azure/powershell action
Browse files Browse the repository at this point in the history
  • Loading branch information
ebronson68 committed Jan 30, 2025
1 parent 9dbcc38 commit 0090c3a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/purge-azure-frontdoor-caches.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,9 @@ jobs:
enable-AzPSSession: true

- name: Purge Azure Front Door cache
uses: azure/cli@v2
uses: azure/powershell@v2
with:
azPSVersion: "latest"
inlineScript: |
if [[ -z "${{ inputs.fdResourceGroup }}" ]]; then
echo "Front Door Resource Group is required. Please provide the Front Door Resource Group name when calling the workflow."
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/purge-cdn.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,9 @@ jobs:
enable-AzPSSession: true

- name: Purge CDN cache
uses: azure/cli@v2
uses: azure/powershell@v2
with:
azPSVersion: "latest"
inlineScript: |
if (-not "${{ inputs.cdnResourceGroup }}") {
Write-Error "CDN Resource Group is required. Please provide the CDN Resource Group name when calling the workflow."
Expand Down

0 comments on commit 0090c3a

Please sign in to comment.