From f0de4fea6f3f2078eef10b693036f2a75319b0e4 Mon Sep 17 00:00:00 2001 From: Bo-Yi Wu Date: Sat, 28 Sep 2019 11:37:34 +0800 Subject: [PATCH] chore: add default timeout --- .github/workflows/ci.yml | 4 +--- entrypoint.sh | 3 +++ 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 52b907b..8ba8338 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -16,6 +16,4 @@ jobs: PORT: ${{ secrets.PORT }} with: source: "tests/a.txt,tests/b.txt" - target: "/home/deploy/test" - timeout: 30s - command_timeout: 30s + target: "test" diff --git a/entrypoint.sh b/entrypoint.sh index 24a5f84..2784ae2 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -4,4 +4,7 @@ set -eu export GITHUB="true" +[ -n "$INPUT_TIMEOUT" ] && export INPUT_TIMEOUT="30s" +[ -n "$INPUT_COMMAND_TIMEOUT" ] && export INPUT_COMMAND_TIMEOUT="1m" + sh -c "/bin/drone-scp $*"