Commit 86f92da 1 parent f795151 commit 86f92da Copy full SHA for 86f92da
File tree 1 file changed +2
-7
lines changed
1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change 32
32
33
33
cancel_build () {
34
34
echo "Canceling the CI build..."
35
- curl --request POST \
36
- --url https://circleci.com/api/v2/workflow/$CIRCLE_WORKFLOW_ID/cancel \
37
- --header "Circle-Token: ${CIRCLE_TOKEN}"
38
- sleep 30 # Give cancellation a chance to run. This script then won't continue running.
39
- exit 1 # If cancellation didn't run for some reason, fail the build.
35
+ circleci-agent step halt
40
36
}
41
37
42
38
TRIGGER_INSTRUCTIONS="to trigger CI , include 'run ci' in the commit message or click the 'Trigger Pipeline' button in the CircleCI UI."
@@ -71,5 +67,4 @@ workflows:
71
67
# the setup-workflow workflow is always triggered.
72
68
setup-workflow :
73
69
jobs :
74
- - verify-ci-should-run :
75
- context : workflow-setup
70
+ - verify-ci-should-run
You can’t perform that action at this time.
0 commit comments