Fix entrypoint.
This commit is contained in:
@@ -10,6 +10,9 @@ export PATH="$PATH:/root/.dotnet/tools/"
|
|||||||
export XDG_DATA_HOME="$HOME/.local/share"
|
export XDG_DATA_HOME="$HOME/.local/share"
|
||||||
mkdir -p "$XDG_DATA_HOME"
|
mkdir -p "$XDG_DATA_HOME"
|
||||||
|
|
||||||
|
# Add NuGet sources before running command
|
||||||
|
handle_nuget_sources "add"
|
||||||
|
|
||||||
PROGRAM=${PROGRAM:-"dotnet"}
|
PROGRAM=${PROGRAM:-"dotnet"}
|
||||||
exec 5>&1
|
exec 5>&1
|
||||||
OUTPUT=$(bash -c "$PROGRAM $COMMAND" | tee /dev/fd/5)
|
OUTPUT=$(bash -c "$PROGRAM $COMMAND" | tee /dev/fd/5)
|
||||||
@@ -23,9 +26,6 @@ if [[ -n "$OUTPUT" ]]; then
|
|||||||
echo "EOF" >> "$GITHUB_OUTPUT"
|
echo "EOF" >> "$GITHUB_OUTPUT"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Add NuGet sources before running command
|
|
||||||
handle_nuget_sources "add"
|
|
||||||
|
|
||||||
echo "exitCode=$RESULT" >> "$GITHUB_OUTPUT"
|
echo "exitCode=$RESULT" >> "$GITHUB_OUTPUT"
|
||||||
|
|
||||||
# Remove NuGet sources after running command
|
# Remove NuGet sources after running command
|
||||||
|
|||||||
@@ -10,6 +10,9 @@ export PATH="$PATH:/root/.dotnet/tools/"
|
|||||||
export XDG_DATA_HOME="$HOME/.local/share"
|
export XDG_DATA_HOME="$HOME/.local/share"
|
||||||
mkdir -p "$XDG_DATA_HOME"
|
mkdir -p "$XDG_DATA_HOME"
|
||||||
|
|
||||||
|
# Add NuGet sources before running command
|
||||||
|
handle_nuget_sources "add"
|
||||||
|
|
||||||
PROGRAM=${PROGRAM:-"dotnet"}
|
PROGRAM=${PROGRAM:-"dotnet"}
|
||||||
exec 5>&1
|
exec 5>&1
|
||||||
OUTPUT=$(bash -c "$PROGRAM $COMMAND" | tee /dev/fd/5)
|
OUTPUT=$(bash -c "$PROGRAM $COMMAND" | tee /dev/fd/5)
|
||||||
@@ -23,9 +26,6 @@ if [[ -n "$OUTPUT" ]]; then
|
|||||||
echo "EOF" >> "$GITHUB_OUTPUT"
|
echo "EOF" >> "$GITHUB_OUTPUT"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Add NuGet sources before running command
|
|
||||||
handle_nuget_sources "add"
|
|
||||||
|
|
||||||
echo "exitCode=$RESULT" >> "$GITHUB_OUTPUT"
|
echo "exitCode=$RESULT" >> "$GITHUB_OUTPUT"
|
||||||
|
|
||||||
# Remove NuGet sources after running command
|
# Remove NuGet sources after running command
|
||||||
|
|||||||
Reference in New Issue
Block a user