Skip to content

Commit

Permalink
gh run list has changed it's output format
Browse files Browse the repository at this point in the history
  • Loading branch information
Torbjørn Vatn committed Jun 16, 2021
1 parent 6bab858 commit c0fef3e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/github/github-deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c0fef3e

Please sign in to comment.