Skip to content

Commit

Permalink
Update actions-runner-worker.py
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristopherHX authored Aug 31, 2023
1 parent 3384819 commit 2c5b00f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion compat/actions-runner-worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ def redirectio():

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

0 comments on commit 2c5b00f

Please sign in to comment.