-
-
Notifications
You must be signed in to change notification settings - Fork 587
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci(action): remove script stop functionality from project (#350)
- Remove the `stop script if command error` step from GitHub workflows - Remove the `script_stop` option from the README and its translations - Remove the `script_stop` input from `action.yml` Signed-off-by: appleboy <[email protected]>
- Loading branch information
Showing
6 changed files
with
0 additions
and
137 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -123,22 +123,6 @@ jobs: | |
port: 2222 | ||
script: whoami | ||
|
||
- name: stop script if command error | ||
uses: appleboy/[email protected] | ||
continue-on-error: true | ||
with: | ||
host: ${{ env.REMOTE_HOST }} | ||
username: linuxserver.io | ||
password: password | ||
key: password | ||
port: 2222 | ||
script_stop: true | ||
sync: true | ||
debug: true | ||
script: | | ||
mkdir abc/def | ||
ls -al | ||
support-key-passphrase: | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
@@ -215,7 +199,6 @@ jobs: | |
key: ${{ env.PRIVATE_KEY }} | ||
port: 2222 | ||
passphrase: 1234 | ||
script_stop: true | ||
script: | | ||
ls \ | ||
-lah | ||
|
@@ -292,7 +275,6 @@ jobs: | |
username: linuxserver.io | ||
key: ${{ env.PRIVATE_KEY }} | ||
passphrase: 1234 | ||
script_stop: true | ||
script: | | ||
whoami | ||
|
@@ -478,7 +460,6 @@ jobs: | |
username: linuxserver.io | ||
key: ${{ env.PRIVATE_KEY }} | ||
port: 2222 | ||
script_stop: true | ||
request_pty: true | ||
command_timeout: 30s | ||
script: | | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -44,7 +44,6 @@ See [action.yml](./action.yml) for more detailed information. | |
| proxy_use_insecure_cipher | Include more ciphers with use_insecure_cipher for the proxy | false | | ||
| script | Execute commands | | | ||
| script_file | Execute commands from a file | | | ||
| script_stop | Stop script after first failure | false | | ||
| envs | Pass environment variables to shell script | | | ||
| envs_format | Flexible configuration of environment value transfer | | | ||
| debug | Enable debug mode | false | | ||
|
@@ -304,37 +303,6 @@ The default value of `port` is `22`. | |
|
||
_Inside `env` object, you need to pass every environment variable as a string, passing `Integer` data type or any other may output unexpected results._ | ||
|
||
#### Stop script after first failure | ||
|
||
> ex: missing `abc` folder | ||
|
||
```diff | ||
- name: stop script if command error | ||
uses: appleboy/[email protected] | ||
with: | ||
host: ${{ secrets.HOST }} | ||
username: ${{ secrets.USERNAME }} | ||
key: ${{ secrets.KEY }} | ||
port: ${{ secrets.PORT }} | ||
+ script_stop: true | ||
script: | | ||
mkdir abc/def | ||
ls -al | ||
``` | ||
|
||
output: | ||
|
||
```sh | ||
======CMD====== | ||
mkdir abc/def | ||
ls -al | ||
======END====== | ||
2019/11/21 01:16:21 Process exited with status 1 | ||
err: mkdir: cannot create directory ‘abc/def’: No such file or directory | ||
##[error]Docker run failed with exit code 1 | ||
``` | ||
|
||
#### How to connect remote server using `ProxyCommand`? | ||
|
||
```bash | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -44,7 +44,6 @@ | |
| proxy_use_insecure_cipher | 使用不安全的密码算法 | false | | ||
| script | 执行命令 | | | ||
| script_file | 从文件执行命令 | | | ||
| script_stop | 在第一次失败后停止脚本 | false | | ||
| envs | 传递环境变量到 shell 脚本 | | | ||
| envs_format | 环境变量传递的灵活配置 | | | ||
| debug | 启用调试模式 | false | | ||
|
@@ -285,37 +284,6 @@ ssh-keygen -t ed25519 -a 200 -C ”[email protected]“ | |
_在 `env` 对象中,您需要将每个环境变量作为字符串传递,传递 `Integer` 数据类型或任何其他类型可能会产生意外结果。_ | ||
|
||
#### 在第一次失败后停止脚本 | ||
|
||
> ex: missing `abc` folder | ||
|
||
```diff | ||
- name: stop script if command error | ||
uses: appleboy/[email protected] | ||
with: | ||
host: ${{ secrets.HOST }} | ||
username: ${{ secrets.USERNAME }} | ||
key: ${{ secrets.KEY }} | ||
port: ${{ secrets.PORT }} | ||
+ script_stop: true | ||
script: | | ||
mkdir abc/def | ||
ls -al | ||
``` | ||
|
||
画面输出: | ||
|
||
```sh | ||
======CMD====== | ||
mkdir abc/def | ||
ls -al | ||
======END====== | ||
2019/11/21 01:16:21 Process exited with status 1 | ||
err: mkdir: cannot create directory ‘abc/def’: No such file or directory | ||
##[error]Docker run failed with exit code 1 | ||
``` | ||
|
||
#### 如何使用 `ProxyCommand` 连接远程服务器? | ||
|
||
```bash | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -44,7 +44,6 @@ | |
| proxy_use_insecure_cipher | 包含更多不安全的加密算法 | false | | ||
| script | 執行命令 | | | ||
| script_file | 從文件中執行命令 | | | ||
| script_stop | 在第一次失敗後停止腳本 | false | | ||
| envs | 將環境變數傳遞給 shell 腳本 | | | ||
| envs_format | 環境值傳遞的靈活配置 | | | ||
| debug | 啟用調試模式 | false | | ||
|
@@ -285,37 +284,6 @@ ssh-keygen -t ed25519 -a 200 -C "[email protected]" | |
_在 `env` 對象中,您需要將每個環境變量作為字符串傳遞,傳遞 `Integer` 數據類型或任何其他類型可能會產生意外結果。_ | ||
|
||
#### 在第一次失敗後停止腳本 | ||
|
||
> ex: missing `abc` folder | ||
|
||
```diff | ||
- name: stop script if command error | ||
uses: appleboy/[email protected] | ||
with: | ||
host: ${{ secrets.HOST }} | ||
username: ${{ secrets.USERNAME }} | ||
key: ${{ secrets.KEY }} | ||
port: ${{ secrets.PORT }} | ||
+ script_stop: true | ||
script: | | ||
mkdir abc/def | ||
ls -al | ||
``` | ||
|
||
畫面輸出: | ||
|
||
```sh | ||
======CMD====== | ||
mkdir abc/def | ||
ls -al | ||
======END====== | ||
2019/11/21 01:16:21 Process exited with status 1 | ||
err: mkdir: cannot create directory ‘abc/def’: No such file or directory | ||
##[error]Docker run failed with exit code 1 | ||
``` | ||
|
||
#### 如何使用 `ProxyCommand` 連接遠程服務器? | ||
|
||
```bash | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters