Skip to content

Commit

Permalink
Remove parsing of status/checks in loop (#1416)
Browse files Browse the repository at this point in the history
  • Loading branch information
KartikP authored Oct 31, 2024
1 parent dce49df commit f96f1ee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/map_new_plugins.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ jobs:
echo "Statuses response from GitHub API:"
echo "$statuses" | jq '.'
# Parse the statuses and check each required job for success
# Loop through each required check and verify if it has succeeded
for check in "${required_checks[@]}"; do
if echo "$statuses" | jq -e --arg check "$check" '.statuses[] | select(.context == $check) | select(.state == "success")' > /dev/null; then
if echo "$statuses" | grep -q "{\"context\":\"$check\",\"state\":\"success\"}"; then
echo "Job '$check' is successful."
((completed_checks+=1))
else
Expand Down

0 comments on commit f96f1ee

Please sign in to comment.