From 35738b63d8ac4c3670950d86c6fa22659dcbd34e Mon Sep 17 00:00:00 2001 From: Alexander Rashed Date: Mon, 5 Aug 2024 14:05:13 +0200 Subject: [PATCH] fix reference to community workflow --- scripts/get_latest_circleci_metrics.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/get_latest_circleci_metrics.sh b/scripts/get_latest_circleci_metrics.sh index 4c352b4f20..49a9f49a45 100755 --- a/scripts/get_latest_circleci_metrics.sh +++ b/scripts/get_latest_circleci_metrics.sh @@ -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')