You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 <appleboy.tw@gmail.com>
Copy file name to clipboardExpand all lines: README.md
-32Lines changed: 0 additions & 32 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -44,7 +44,6 @@ See [action.yml](./action.yml) for more detailed information.
44
44
| proxy_use_insecure_cipher | Include more ciphers with use_insecure_cipher for the proxy | false |
45
45
| script | Execute commands ||
46
46
| script_file | Execute commands from a file ||
47
-
| script_stop | Stop script after first failure | false |
48
47
| envs | Pass environment variables to shell script ||
49
48
| envs_format | Flexible configuration of environment value transfer ||
50
49
| debug | Enable debug mode | false |
@@ -304,37 +303,6 @@ The default value of `port` is `22`.
304
303
305
304
_Inside `env` object, you need to pass every environment variable as a string, passing `Integer` data type or any other may output unexpected results._
306
305
307
-
#### Stop script after first failure
308
-
309
-
> ex: missing `abc` folder
310
-
311
-
```diff
312
-
- name: stop script if command error
313
-
uses: appleboy/ssh-action@v1.2.0
314
-
with:
315
-
host: ${{ secrets.HOST }}
316
-
username: ${{ secrets.USERNAME }}
317
-
key: ${{ secrets.KEY }}
318
-
port: ${{ secrets.PORT }}
319
-
+ script_stop: true
320
-
script: |
321
-
mkdir abc/def
322
-
ls -al
323
-
```
324
-
325
-
output:
326
-
327
-
```sh
328
-
======CMD======
329
-
mkdir abc/def
330
-
ls -al
331
-
332
-
======END======
333
-
2019/11/21 01:16:21 Process exited with status 1
334
-
err: mkdir: cannot create directory ‘abc/def’: No such file or directory
335
-
##[error]Docker run failed with exit code 1
336
-
```
337
-
338
306
#### How to connect remote server using `ProxyCommand`?
0 commit comments