From c0fef3ed324b800ffbf4ecde338fe6682c30290b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torbj=C3=B8rn=20Vatn?= Date: Wed, 16 Jun 2021 10:54:48 +0200 Subject: [PATCH] gh run list has changed it's output format --- plugins/github/github-deploy.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/github/github-deploy.sh b/plugins/github/github-deploy.sh index 0f9b647..26382e5 100755 --- a/plugins/github/github-deploy.sh +++ b/plugins/github/github-deploy.sh @@ -12,11 +12,11 @@ if git fetch && git diff @"{push}" --shortstat --exit-code >/dev/null 2>&1; then --method POST -F ref=":branch" -F environment="$environment" -F auto_merge="$auto_merge" \ -F task="$task" - echo "Looking for active runs..." && sleep 10 + echo "Looking for active runs..." && sleep 5 # List all runs for current branch branch=$(git branch --show-current) - run_id=$(gh run list --limit 1 | grep "$branch" | grep -v "completed" | rev | cut -f1 | rev) + run_id=$(gh run list --limit 1 | grep "$branch" | grep -v "completed" | cut -f7) if [ "$run_id" ]; then gh run watch "$run_id" else