From 3c9e623cf62fd74acf3903038ae94033a12205f3 Mon Sep 17 00:00:00 2001 From: Willi0728 <67607556+Willi0728@users.noreply.github.com> Date: Fri, 5 Feb 2021 20:37:35 -0500 Subject: [PATCH] setting-exit-codes-for-actions.md C --- .../creating-actions/setting-exit-codes-for-actions.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/content/actions/creating-actions/setting-exit-codes-for-actions.md b/content/actions/creating-actions/setting-exit-codes-for-actions.md index 2a733849d5..0270e298f0 100644 --- a/content/actions/creating-actions/setting-exit-codes-for-actions.md +++ b/content/actions/creating-actions/setting-exit-codes-for-actions.md @@ -21,7 +21,7 @@ type: 'how_to' Exit status | Check run status | Description ------------|------------------|------------ `0` | `success` | The action completed successfully and other tasks that depends on it can begin. -Nonzero value | `failure` | Any other exit code indicates the action failed. When an action fails, all concurrent actions are canceled and future actions are skipped. The check run and check suite both get a `failure` status. +Nonzero value (any integer but 0)| `failure` | Any other exit code indicates the action failed. When an action fails, all concurrent actions are canceled and future actions are skipped. The check run and check suite both get a `failure` status. ### Setting a failure exit code in a JavaScript action @@ -41,13 +41,11 @@ For more information, see "[Creating a JavaScript action](/articles/creating-a-j If you are creating a Docker container action, you can set a failure exit code in your `entrypoint.sh` script. For example: -{% raw %} ``` if ; then echo "Game over!" exit 1 fi ``` -{% endraw %} For more information, see "[Creating a Docker container action](/articles/creating-a-docker-container-action)."