Skip to content

Commit 9817ef4

Browse files
author
Seth Landry
authored
docs(readme): set -e for script_stop functionality (#368)
Fixes #367 Add a note in the "Input variables" section of `README.md` to mention that users can add `set -e` in their shell script to achieve similar functionality to the removed `script_stop` option. Add a note in the "输入变量" section of `README.zh-cn.md` to mention that users can add `set -e` in their shell script to achieve similar functionality to the removed `script_stop` option. Add a note in the "輸入變數" section of `README.zh-tw.md` to mention that users can add `set -e` in their shell script to achieve similar functionality to the removed `script_stop` option. --- For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/appleboy/ssh-action/issues/367?shareId=XXXX-XXXX-XXXX-XXXX).
1 parent 8faa842 commit 9817ef4

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@ See [action.yml](./action.yml) for more detailed information.
5050
| allenvs | Pass the environment variables with prefix value of `GITHUB_` and `INPUT_` to the script | false |
5151
| request_pty | Request a pseudo-terminal from the server | false |
5252

53+
**Note:** Users can add `set -e` in their shell script to achieve similar functionality to the removed `script_stop` option.
54+
5355
## Usage
5456

5557
Executing remote SSH commands.

README.zh-cn.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@
5050
| allenvs | 将带有 `GITHUB_``INPUT_` 前缀的环境变量传递给脚本 | false |
5151
| request_pty | 请求伪终端 | false |
5252

53+
**注意:** 用户可以在他们的 shell 脚本中添加 `set -e` 以实现类似于已删除的 `script_stop` 选项的功能。
54+
5355
## 使用方法
5456

5557
执行远程 SSH 命令

README.zh-tw.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@
5050
| allenvs | 將帶有 `GITHUB_``INPUT_` 前綴的環境變數傳遞給腳本 | false |
5151
| request_pty | 從伺服器請求偽終端 | false |
5252

53+
**注意:** 用戶可以在他們的 shell 腳本中添加 `set -e` 以實現類似於已刪除的 `script_stop` 選項的功能。
54+
5355
## 用法
5456

5557
執行遠端 SSH 命令

0 commit comments

Comments
 (0)