diff --git a/dotnet/dotnet-10/entrypoint.sh b/dotnet/dotnet-10/entrypoint.sh index d225b0d..24f2bc1 100644 --- a/dotnet/dotnet-10/entrypoint.sh +++ b/dotnet/dotnet-10/entrypoint.sh @@ -10,6 +10,9 @@ export PATH="$PATH:/root/.dotnet/tools/" export XDG_DATA_HOME="$HOME/.local/share" mkdir -p "$XDG_DATA_HOME" +# Add NuGet sources before running command +handle_nuget_sources "add" + PROGRAM=${PROGRAM:-"dotnet"} exec 5>&1 OUTPUT=$(bash -c "$PROGRAM $COMMAND" | tee /dev/fd/5) @@ -23,9 +26,6 @@ if [[ -n "$OUTPUT" ]]; then echo "EOF" >> "$GITHUB_OUTPUT" fi -# Add NuGet sources before running command -handle_nuget_sources "add" - echo "exitCode=$RESULT" >> "$GITHUB_OUTPUT" # Remove NuGet sources after running command diff --git a/dotnet/dotnet/entrypoint.sh b/dotnet/dotnet/entrypoint.sh index d225b0d..24f2bc1 100644 --- a/dotnet/dotnet/entrypoint.sh +++ b/dotnet/dotnet/entrypoint.sh @@ -10,6 +10,9 @@ export PATH="$PATH:/root/.dotnet/tools/" export XDG_DATA_HOME="$HOME/.local/share" mkdir -p "$XDG_DATA_HOME" +# Add NuGet sources before running command +handle_nuget_sources "add" + PROGRAM=${PROGRAM:-"dotnet"} exec 5>&1 OUTPUT=$(bash -c "$PROGRAM $COMMAND" | tee /dev/fd/5) @@ -23,9 +26,6 @@ if [[ -n "$OUTPUT" ]]; then echo "EOF" >> "$GITHUB_OUTPUT" fi -# Add NuGet sources before running command -handle_nuget_sources "add" - echo "exitCode=$RESULT" >> "$GITHUB_OUTPUT" # Remove NuGet sources after running command