circleci-orb icon indicating copy to clipboard operation
circleci-orb copied to clipboard

fix: only attach workspace when required

Open willheslam opened this issue 3 years ago • 3 comments

My cypress/run CI job is currently failing due to

Directory (/home/circleci/project) you are trying to checkout to is not empty and not a git repository because the following steps are always applied:

    - attach_workspace:
        at: ~/
    - checkout

checkout should only be present when you're not attaching a workspace, but currently, attach-workspace: false doesn't stop workspaces being attached due to the broken conditional, hence the job failing if the workspace has anything inside it.

Fixes https://github.com/cypress-io/circleci-orb/issues/293

willheslam avatar Oct 03 '21 19:10 willheslam

CLA assistant check
All committers have signed the CLA.

CLAassistant avatar Oct 03 '21 19:10 CLAassistant

@willheslam Could you please sign our CLA?

jennifer-shehane avatar Oct 05 '21 13:10 jennifer-shehane

@jennifer-shehane Oops, thanks for the reminder - done!

willheslam avatar Oct 05 '21 18:10 willheslam

Hey @pckilgore any chance this could be merged in? We're running into this issue currently.

bayphillips-seed avatar Oct 27 '22 17:10 bayphillips-seed

Hey @pckilgore any chance this could be merged in? We're running into this issue currently.

Don't work for Cypress

pckilgore avatar Oct 27 '22 20:10 pckilgore

Do you have an ETA for when this will be released?

benedfit avatar Jan 24 '23 11:01 benedfit