File tree Expand file tree Collapse file tree 1 file changed +0
-3
lines changed Expand file tree Collapse file tree 1 file changed +0
-3
lines changed Original file line number Diff line number Diff line change 11jobsJson=$( curl -s -X GET " https://circleci.com/api/v2/workflow/$CIRCLE_WORKFLOW_ID /job" --header " Circle-Token: $CIRCLE_TOKEN " )
22
3- # jobsJson=$(echo "$jobsJson" | jq -R '.' | jq -s '.' | jq -r 'join("")')
43job=$( jq ' .items[] | select(.name == "hold_release_slack_notification")' <<< " $jobsJson" )
54
6- # job=$(echo "$job" | jq -R '.' | jq -s '.' | jq -r 'join("")')
75approver_id=$( jq ' .approved_by' <<< " $job" )
86
97approver_id=$( tr -d ' "' <<< " $approver_id" )
108
119user=$( curl -s -X GET " https://circleci.com/api/v2/user/$approver_id " --header " Circle-Token: $CIRCLE_TOKEN " )
1210
13- # user=$(echo "$user" | jq -R '.' | jq -s '.' | jq -r 'join("")')
1411username=$( jq ' .login' <<< " $user" )
1512
1613username=$( tr -d ' "' <<< " $username" )
You can’t perform that action at this time.
0 commit comments