Skip to content

Commit d2f77a6

Browse files
committed
fix python worker script exit code 105 is success
1 parent 2190689 commit d2f77a6

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

actions-runner-worker.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ def redirectio():
3333

3434
code = subprocess.call(interpreter + [worker, "spawnclient", format(rdr), format(wdw)], pass_fds=(rdr, wdw))
3535
print(code)
36-
if code >= 100 and code < 105:
36+
# https://github.com/actions/runner/blob/af6ed41bcb47019cce2a7035bad76c97ac97b92a/src/Runner.Common/Util/TaskResultUtil.cs#L13-L14
37+
if code >= 100 and code <= 105:
3738
sys.exit(0)
3839
else:
3940
sys.exit(1)

0 commit comments

Comments
 (0)