mirror of
https://github.com/actions/runner.git
synced 2025-12-12 14:17:46 +00:00
Return exit code when MANUALLY_TRAP_SIG is exported (#2285)
This commit is contained in:
@@ -18,6 +18,7 @@ RUN curl -f -L -o runner-container-hooks.zip https://github.com/actions/runner-c
|
|||||||
FROM mcr.microsoft.com/dotnet/runtime-deps:6.0
|
FROM mcr.microsoft.com/dotnet/runtime-deps:6.0
|
||||||
|
|
||||||
ENV RUNNER_ALLOW_RUNASROOT=1
|
ENV RUNNER_ALLOW_RUNASROOT=1
|
||||||
|
ENV RUNNER_MANUALLY_TRAP_SIG=1
|
||||||
|
|
||||||
WORKDIR /actions-runner
|
WORKDIR /actions-runner
|
||||||
COPY --from=build /actions-runner .
|
COPY --from=build /actions-runner .
|
||||||
|
|||||||
@@ -48,7 +48,7 @@ runWithManualTrap() {
|
|||||||
trap - INT TERM
|
trap - INT TERM
|
||||||
# wait for last parts to be logged
|
# wait for last parts to be logged
|
||||||
wait $PID
|
wait $PID
|
||||||
exit 0
|
exit $returnCode
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user