Skip to content

Commit

Permalink
CI: timeout with project token
Browse files Browse the repository at this point in the history
  • Loading branch information
rashtao committed Jun 19, 2024
1 parent 7454ec6 commit 7b07a94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ commands:
command: |
sleep <<parameters.duration>>
echo "Cancelling job as <<parameters.duration>> has elapsed"
curl --fail -X POST -H "Circle-Token: ${CIRCLE_TOKEN}" "https://circleci.com/api/v2/project/github/${CIRCLE_PROJECT_USERNAME}/${CIRCLE_PROJECT_REPONAME}/job/${CIRCLE_BUILD_NUM}/cancel"
curl --fail -X POST -H "Circle-Token: ${CIRCLE_TOKEN}" "https://circleci.com/api/v1.1/project/github/${CIRCLE_PROJECT_USERNAME}/${CIRCLE_PROJECT_REPONAME}/${CIRCLE_BUILD_NUM}/cancel"
start-db:
parameters:
docker-img:
Expand Down

0 comments on commit 7b07a94

Please sign in to comment.