Hi,
I’m trying running this config:
setup: true
version: 2.1
orbs:
git-shallow-clone: guitarrapc/git-shallow-clone@2.8.0
workflows:
setup:
jobs:
- git-shallow-clone/checkout:
depth: 1
the flow is not running and I get:
Error calling workflow: 'setup'
Cannot find a definition for job named git-shallow-clone/checkout
Can’t understand why, the Orb is from the registry and I run the example…
Thanks
That line should not be part of your config.yml
I think I need it to the next changes, I’ve tried without it and still not working
rit1010
4
OK, I’m not sure why that code is now not working as it is the standard way of showing a basic ORB example.
Below is the same code, but in a more formal layout as
- the work to be done has been moved into a defined job
- the environment to be used to run the job has been defined via the docker command.
version: 2.1
orbs:
git-shallow-clone: guitarrapc/git-shallow-clone@2.8.0
jobs:
call-checkout:
docker:
- image: cimg/base:2022.03
steps:
- git-shallow-clone/checkout:
depth: 1
workflows:
my-workflow:
jobs:
- call-checkout