ci: ignore failed cache source when falling back to nuget.org
CI / docker (push) Has been cancelled
CI / build-and-test (push) Has been cancelled

This commit is contained in:
Dolon
2026-04-10 08:14:21 +00:00
parent 68a179b595
commit 6d87722cc8
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -32,7 +32,8 @@ jobs:
echo "Using NuGet cache: ${NUGET_CACHE_URL}"
dotnet restore src/UsingCash.sln \
--source "${NUGET_CACHE_URL}" \
--source "https://api.nuget.org/v3/index.json"
--source "https://api.nuget.org/v3/index.json" \
--ignore-failed-sources
else
dotnet restore src/UsingCash.sln
fi
+1 -1
View File
@@ -20,7 +20,7 @@ COPY src/UsingCash.Migration/*.csproj src/UsingCash.Migration/
COPY src/UsingCash.Tests/*.csproj src/UsingCash.Tests/
ARG NUGET_CACHE_URL
RUN if [ -n "$NUGET_CACHE_URL" ]; then \
dotnet restore src/UsingCash.sln --source "$NUGET_CACHE_URL" --source "https://api.nuget.org/v3/index.json"; \
dotnet restore src/UsingCash.sln --source "$NUGET_CACHE_URL" --source "https://api.nuget.org/v3/index.json" --ignore-failed-sources; \
else \
dotnet restore src/UsingCash.sln; \
fi