From ff5088b8cc4395193fddfd82df3aec43fd0ff3c4 Mon Sep 17 00:00:00 2001 From: Rachael Sewell Date: Thu, 21 Sep 2023 19:12:43 -0700 Subject: [PATCH] remove disable line --- .../creating-a-docker-container-action.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/content/actions/creating-actions/creating-a-docker-container-action.md b/content/actions/creating-actions/creating-a-docker-container-action.md index 058d9ef624..95f0ea9200 100644 --- a/content/actions/creating-actions/creating-a-docker-container-action.md +++ b/content/actions/creating-actions/creating-a-docker-container-action.md @@ -102,20 +102,20 @@ Next, the script gets the current time and sets it as an output variable that ac echo "Hello $1" time=$(date) -{%- ifversion actions-save-state-set-output-envs %} + {%- ifversion actions-save-state-set-output-envs %} echo "time=$time" >> $GITHUB_OUTPUT -{%- else %} + {%- else %} echo "::set-output name=time::$time" -{%- endif %} - ``` + {%- endif %} + ``` If `entrypoint.sh` executes without any errors, the action's status is set to `success`. You can also explicitly set exit codes in your action's code to provide an action's status. For more information, see "[AUTOTITLE](/actions/creating-actions/setting-exit-codes-for-actions)." 1. Make your `entrypoint.sh` file executable. Git provides a way to explicitly change the permission mode of a file so that it doesn’t get reset every time there is a clone/fork. ```shell copy - $ git add entrypoint.sh - $ git update-index --chmod=+x entrypoint.sh + git add entrypoint.sh + git update-index --chmod=+x entrypoint.sh ``` 1. Optionally, to check the permission mode of the file in the git index, run the following command.