Skip to content

Commit

Permalink
Return exit code when MANUALLY_TRAP_SIG is exported (actions#2285)
Browse files Browse the repository at this point in the history
  • Loading branch information
nikola-jokic authored Nov 28, 2022
1 parent 63640e9 commit 852a80f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions images/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

ENV RUNNER_ALLOW_RUNASROOT=1
ENV RUNNER_MANUALLY_TRAP_SIG=1

WORKDIR /actions-runner
COPY --from=build /actions-runner .
2 changes: 1 addition & 1 deletion src/Misc/layoutroot/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ runWithManualTrap() {
trap - INT TERM
# wait for last parts to be logged
wait $PID
exit 0
exit $returnCode
fi
done
}
Expand Down

0 comments on commit 852a80f

Please sign in to comment.