Skip to content

Commit

Permalink
chore: workflow update #patch
Browse files Browse the repository at this point in the history
  • Loading branch information
PatrickMenoti committed Jan 14, 2025
1 parent 79ceddb commit 9396aae
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
21 changes: 21 additions & 0 deletions .github/workflows/deploy_prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,27 @@ jobs:
runs-on: windows-latest
needs: [build, bump_formula]
steps:

- name: Register WinGet if not available
run: |
# Check if Winget is installed
if (!(Get-Command winget -ErrorAction SilentlyContinue)) {
Write-Host "Winget not found. Attempting to register..."
try {
Add-AppxPackage -RegisterByFamilyName -MainPackage Microsoft.DesktopAppInstaller_8wekyb3d8bbwe
Write-Host "Winget registration triggered successfully."
} catch {
Write-Error "Failed to register Winget. Ensure administrative privileges are available."
exit 1
}
} else {
Write-Host "Winget is already installed."
}
- name: Verify Winget installation
run: |
winget --version
- name: install komac
run: |
winget install komac
Expand Down
2 changes: 1 addition & 1 deletion pkg/cmd/create/edge_applications/edge_application.go
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ func createRequestFromFlags(fields *Fields, request *api.CreateRequest) error {
request.SetHttpsPort(fields.HttpsPort)
}

if !utils.IsEmpty(fields.DeliveryProtocol) {
if !utils.IsEmpty(fields.OriginType) {
request.SetOriginType(fields.OriginType)
}

Expand Down

0 comments on commit 9396aae

Please sign in to comment.