mirror of
https://gitea.com/actions/appleboy-ssh-action.git
synced 2025-03-03 22:24:01 +01:00
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).
This commit is contained in:
parent
8faa84277b
commit
9817ef4a17
3 changed files with 6 additions and 0 deletions
|
@ -50,6 +50,8 @@ See [action.yml](./action.yml) for more detailed information.
|
||||||
| allenvs | Pass the environment variables with prefix value of `GITHUB_` and `INPUT_` to the script | false |
|
| allenvs | Pass the environment variables with prefix value of `GITHUB_` and `INPUT_` to the script | false |
|
||||||
| request_pty | Request a pseudo-terminal from the server | false |
|
| request_pty | Request a pseudo-terminal from the server | false |
|
||||||
|
|
||||||
|
**Note:** Users can add `set -e` in their shell script to achieve similar functionality to the removed `script_stop` option.
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
Executing remote SSH commands.
|
Executing remote SSH commands.
|
||||||
|
|
|
@ -50,6 +50,8 @@
|
||||||
| allenvs | 将带有 `GITHUB_` 和 `INPUT_` 前缀的环境变量传递给脚本 | false |
|
| allenvs | 将带有 `GITHUB_` 和 `INPUT_` 前缀的环境变量传递给脚本 | false |
|
||||||
| request_pty | 请求伪终端 | false |
|
| request_pty | 请求伪终端 | false |
|
||||||
|
|
||||||
|
**注意:** 用户可以在他们的 shell 脚本中添加 `set -e` 以实现类似于已删除的 `script_stop` 选项的功能。
|
||||||
|
|
||||||
## 使用方法
|
## 使用方法
|
||||||
|
|
||||||
执行远程 SSH 命令
|
执行远程 SSH 命令
|
||||||
|
|
|
@ -50,6 +50,8 @@
|
||||||
| allenvs | 將帶有 `GITHUB_` 和 `INPUT_` 前綴的環境變數傳遞給腳本 | false |
|
| allenvs | 將帶有 `GITHUB_` 和 `INPUT_` 前綴的環境變數傳遞給腳本 | false |
|
||||||
| request_pty | 從伺服器請求偽終端 | false |
|
| request_pty | 從伺服器請求偽終端 | false |
|
||||||
|
|
||||||
|
**注意:** 用戶可以在他們的 shell 腳本中添加 `set -e` 以實現類似於已刪除的 `script_stop` 選項的功能。
|
||||||
|
|
||||||
## 用法
|
## 用法
|
||||||
|
|
||||||
執行遠端 SSH 命令
|
執行遠端 SSH 命令
|
||||||
|
|
Loading…
Add table
Reference in a new issue