Skip to content

Commit

Permalink
fix parity upgrade action by updating CircleCI URL (#1415)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexrashed authored Aug 5, 2024
1 parent aefeb3d commit f5d8bc5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/get_latest_circleci_metrics.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ METRICS_IMPL="$PARENT_FOLDER/metrics-implementation-details/"

echo "Project: $PROJECT_SLUG."

WORKFLOW_ID=$(curl -X 'GET' "https://circleci.com/api/v2/insights/${PROJECT_SLUG}/workflows/main?branch=${METRICS_ARTIFACTS_BRANCH}" -H 'accept: application/json' | jq -r '[.items[] | select(.status == "success")][0].id')
WORKFLOW_ID=$(curl -X 'GET' "https://circleci.com/api/v2/insights/${PROJECT_SLUG}/workflows/full-run?branch=${METRICS_ARTIFACTS_BRANCH}" -H 'accept: application/json' | jq -r '[.items[] | select(.status == "success")][0].id')
echo "Latest successful workflow: $WORKFLOW_ID"

JOB_NUMBER=$(curl -X 'GET' "https://circleci.com/api/v2/workflow/${WORKFLOW_ID}/job" -H 'accept: application/json'| jq -r '.items[] | select(.name == "report") | .job_number')
Expand Down

0 comments on commit f5d8bc5

Please sign in to comment.