Skip to content

Commit

Permalink
Fix retriggers
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasssvaz committed Apr 17, 2024
1 parent e325e34 commit 9161b85
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/wait-on-workflow.sh
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ if [ -z "$run_id" ]; then
fi

run_id=$(echo "$response" | \
jq -r --arg sha "$SHA" '.workflow_runs[] | select(.head_sha == $sha) | .id')
jq -r --arg sha "$SHA" '.workflow_runs[] | select(.head_sha == $sha) | sort_by(.created_at) | last | .id')
if [ -n "$run_id" ]; then
echo "🎉 Workflow triggered! Run ID: $run_id"
break
Expand Down

0 comments on commit 9161b85

Please sign in to comment.