mirror of
https://github.com/appleboy/scp-action.git
synced 2026-12-01 01:06:02 +00:00
chore: add default timeout
This commit is contained in:
1 parent
03e93ae863
commit
f0de4fea6f
2 files changed
+4
-3
No files matched your search
@@ -16,6 +16,4 @@ jobs:
|
|||||||
PORT: ${{ secrets.PORT }}
|
PORT: ${{ secrets.PORT }}
|
||||||
with:
|
with:
|
||||||
source: "tests/a.txt,tests/b.txt"
|
source: "tests/a.txt,tests/b.txt"
|
||||||
target: "/home/deploy/test"
|
target: "test"
|
||||||
timeout: 30s
|
|
||||||
command_timeout: 30s
|
|
||||||
@@ -4,4 +4,7 @@ set -eu
|
|||||||
|
|
||||||
export GITHUB="true"
|
export GITHUB="true"
|
||||||
|
|
||||||
|
[ -n "$INPUT_TIMEOUT" ] && export INPUT_TIMEOUT="30s"
|
||||||
|
[ -n "$INPUT_COMMAND_TIMEOUT" ] && export INPUT_COMMAND_TIMEOUT="1m"
|
||||||
|
|
||||||
sh -c "/bin/drone-scp $*"
|
sh -c "/bin/drone-scp $*"
|
||||||
Reference in new issue
Block a user