Skip to content

Commit

Permalink
Merge pull request #1440 from snyk/fix/update-deploy-script
Browse files Browse the repository at this point in the history
fix: update deploy script to search for correct approval job name
  • Loading branch information
popas90 authored Jan 11, 2024
2 parents bfc7d79 + eb26ce0 commit 4bb3ce7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/circleci-jobs/deploy_to_prod.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ APPROVAL_REQUEST_ID=$(curl -s --fail --show-error \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Circle-Token: $CIRCLI_CI_API_TOKEN" \
https://circleci.com/api/v2/workflow/"${WORKFLOW_ID}"/job | jq -r '.items[] | select(.name == "Approve Production deployment") | .approval_request_id')
https://circleci.com/api/v2/workflow/"${WORKFLOW_ID}"/job | jq -r '.items[] | select(.name == "Approve prod deployment") | .approval_request_id')

APPROVAL=$(curl -s --fail --show-error \
-H "Accept: application/json" \
Expand Down

0 comments on commit 4bb3ce7

Please sign in to comment.