Skip to content

Commit 48f4c08

Browse files
committed
workflow fix for nuget
1 parent 3c45485 commit 48f4c08

2 files changed

Lines changed: 13 additions & 6 deletions

File tree

.github/workflows/release.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,4 +48,8 @@ jobs:
4848
user: ${{ secrets.NUGET_USER }} # your nuget.org username (profile name), NOT your email
4949

5050
- name: Push to nuget.org
51-
run: dotnet nuget push "artifacts/*.nupkg" --api-key ${{ steps.login.outputs.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json --skip-duplicate
51+
shell: pwsh
52+
run: |
53+
Get-ChildItem artifacts -Filter *.nupkg | ForEach-Object {
54+
dotnet nuget push $_.FullName --api-key ${{ steps.login.outputs.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json --skip-duplicate
55+
}

src/RedGuides.Client/Updates/RedGuidesUpdateService.cs

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -137,11 +137,14 @@ private void CaptureEntitlement(HttpResponseMessage response)
137137
{
138138
var entitlement = EntitlementInfo.FromResponse(response);
139139
_lastEntitlement = entitlement;
140-
_logger.LogDebug(
141-
"Entitlement={State} canRenew={CanRenew}",
142-
entitlement.State ?? "?",
143-
entitlement.CanRenew
144-
);
140+
if (_logger.IsEnabled(LogLevel.Debug))
141+
{
142+
_logger.LogDebug(
143+
"Entitlement={State} canRenew={CanRenew}",
144+
entitlement.State ?? "?",
145+
entitlement.CanRenew
146+
);
147+
}
145148
}
146149

147150
/// <summary>Distinguishes "up to date" from "not entitled to updates."</summary>

0 commit comments

Comments
 (0)