I am using an orb and am trying to add an step that simply runs a bash script but I keep getting the error Error calling workflow: 'all' Cannot find a definition for job named cool-down
version: 2.1
orbs:
node-service: phdv/node-service@2.1.0
terraform: phdv/terraform@2.0.3
parameters:
terraform_version:
type: string
default: 0.12.24
executors:
node:
docker:
- image: circleci/node:12
auth:
username: $DOCKER_HUB_USERNAME
password: $DOCKER_HUB_PASSWORD
workflows:
version: 2
all:
jobs:
- node-service/install_yarn_deps:
name: install
executor: node
context:
- phdv-aws
- phdv-docker-hub-creds
- node-service/run_script:
name: lint
executor: node
context:
- phdv-docker-hub-creds
package_manager: yarn
script_name: lint
requires:
- install
- node-service/run_script:
name: test
executor: node
context:
- phdv-docker-hub-creds
package_manager: yarn
script_name: test
requires:
- install
- node-service/run_script:
name: check
executor: node
context:
- phdv-docker-hub-creds
package_manager: yarn
script_name: typecheck
requires:
- install
- node-service/run_script:
name: audit
executor: node
context:
- phdv-docker-hub-creds
package_manager: yarn
script_name: audit
requires:
- install
- node-service/run_script:
name: build
executor: node
context:
- phdv-docker-hub-creds
package_manager: yarn
script_name: build
persist_to_workspace: true
requires:
- lint
- test
- check
- audit
- node-service/run_script:
name: package
executor: node
context:
- phdv-docker-hub-creds
package_manager: yarn
script_name: package
persist_to_workspace: true
requires:
- build
- terraform/init_and_plan:
name: terraform_plan
context:
- phdv-aws
- phdv-docker-hub-creds
terraform_version: <<pipeline.parameters.terraform_version>>
working_directory: ~/project/infra
persist_to_workspace_filepath_prefix: infra/
requires:
- package
- terraform/init_and_apply:
name: terraform_apply
context:
- phdv-aws
- phdv-docker-hub-creds
terraform_version: <<pipeline.parameters.terraform_version>>
working_directory: ~/project/infra
requires:
- terraform_plan
- cool-down:
machine: true
steps:
- run:
name: stopwatch
command: sleep 100; exit 1
requires:
- terraform_apply