Skip to content

Commit 99324b6

Browse files
revert positioning of when
1 parent 85182ab commit 99324b6

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

.circleci/config.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ commands:
99
- run:
1010
name: Destroy environment
1111
# ${CIRCLE_WORKFLOW_ID} is a Built-in environment variable
12-
# ${CIRCLE_WORKFLOW_ID:0:5} takes the first 5 chars of the variable CIRCLE_CI_WORKFLOW_ID
12+
# ${CIRCLE_WORKFLOW_ID:0:5} takes the first 5 chars of the variable CIRCLE_CI_WORKFLOW_ID:
13+
when: on_fail
1314
command: |
1415
aws cloudformation delete-stack --stack-name myStack-${CIRCLE_WORKFLOW_ID:0:5}
1516
@@ -68,8 +69,7 @@ jobs:
6869
name: simulate error
6970
command: |
7071
return 1
71-
- destroy_environment:
72-
when: on_fail
72+
- destroy_environment
7373
# URL="https://blog.udacity.com/"
7474
# # Test if website exists
7575
# if curl -s --head ${URL}

0 commit comments

Comments
 (0)