From 55e437f98780aff545eb6f155e2794b4b85506f1 Mon Sep 17 00:00:00 2001 From: Mark Ridgwell Date: Fri, 3 Jan 2025 17:12:44 +0000 Subject: [PATCH] [Actions] Updated .github/actions/dotnet/action.yml --- .github/actions/dotnet/action.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/actions/dotnet/action.yml b/.github/actions/dotnet/action.yml index cc3a030d..d7ce5271 100644 --- a/.github/actions/dotnet/action.yml +++ b/.github/actions/dotnet/action.yml @@ -97,7 +97,9 @@ runs: - name: "Dotnet: Restore packages" working-directory: ${{github.workspace}}/src shell: bash - run: dotnet restore -nodeReuse:False -p:NoWarn=MSB4241 -p:SuppressNETCoreSdkPreviewMessage=true + run: | + dotnet restore -nodeReuse:False -p:NoWarn=MSB4241 -p:SuppressNETCoreSdkPreviewMessage=true || \ + dotnet restore -nodeReuse:False -p:NoWarn=MSB4241 -p:SuppressNETCoreSdkPreviewMessage=true env: DOTNET_ROOT: "${{github.workspace}}/.dotnet/${{github.sha}}-${{github.run_id}}-${{github.run_number}}-${{github.run_attempt}}" DOTNET_INSTALL_DIR: "${{github.workspace}}/.dotnet/${{github.sha}}-${{github.run_id}}-${{github.run_number}}-${{github.run_attempt}}"